2019-07-05 07:34:05 -04:00
|
|
|
[role="xpack"]
|
|
|
|
[testenv="platinum"]
|
|
|
|
[[delete-dfanalytics]]
|
2020-07-20 16:06:29 -04:00
|
|
|
= Delete {dfanalytics-jobs} API
|
2019-07-05 07:34:05 -04:00
|
|
|
[subs="attributes"]
|
|
|
|
++++
|
|
|
|
<titleabbrev>Delete {dfanalytics-jobs}</titleabbrev>
|
|
|
|
++++
|
|
|
|
|
|
|
|
Deletes an existing {dfanalytics-job}.
|
|
|
|
|
2019-07-12 11:26:31 -04:00
|
|
|
experimental[]
|
|
|
|
|
2019-12-13 05:48:21 -05:00
|
|
|
|
2019-07-05 07:34:05 -04:00
|
|
|
[[ml-delete-dfanalytics-request]]
|
2020-07-20 16:06:29 -04:00
|
|
|
== {api-request-title}
|
2019-07-05 07:34:05 -04:00
|
|
|
|
|
|
|
`DELETE _ml/data_frame/analytics/<data_frame_analytics_id>`
|
|
|
|
|
2019-12-13 05:48:21 -05:00
|
|
|
|
2019-07-05 07:34:05 -04:00
|
|
|
[[ml-delete-dfanalytics-prereq]]
|
2020-07-20 16:06:29 -04:00
|
|
|
== {api-prereq-title}
|
2019-07-05 07:34:05 -04:00
|
|
|
|
2020-01-09 04:44:07 -05:00
|
|
|
If the {es} {security-features} are enabled, you must have the following built-in roles or equivalent privileges:
|
|
|
|
|
|
|
|
* `machine_learning_admin`
|
|
|
|
|
2020-07-23 19:43:10 -04:00
|
|
|
For more information, see <<built-in-roles>> and {ml-docs-setup-privileges}.
|
2019-07-05 07:34:05 -04:00
|
|
|
|
2019-12-13 05:48:21 -05:00
|
|
|
|
2019-07-05 07:34:05 -04:00
|
|
|
[[ml-delete-dfanalytics-path-params]]
|
2020-07-20 16:06:29 -04:00
|
|
|
== {api-path-parms-title}
|
2019-07-05 07:34:05 -04:00
|
|
|
|
2019-07-12 11:26:31 -04:00
|
|
|
`<data_frame_analytics_id>`::
|
2019-12-13 05:48:21 -05:00
|
|
|
(Required, string)
|
2020-06-01 16:46:15 -04:00
|
|
|
include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=job-id-data-frame-analytics]
|
2019-12-13 05:48:21 -05:00
|
|
|
|
2020-01-03 06:46:02 -05:00
|
|
|
[[ml-delete-dfanalytics-query-params]]
|
2020-07-20 16:06:29 -04:00
|
|
|
== {api-query-parms-title}
|
2020-01-03 06:46:02 -05:00
|
|
|
|
|
|
|
`force`::
|
|
|
|
(Optional, boolean) If `true`, it deletes a job that is not stopped; this method is
|
|
|
|
quicker than stopping and deleting the job.
|
|
|
|
|
2020-06-05 10:50:01 -04:00
|
|
|
`timeout`::
|
|
|
|
(Optional, <<time-units,time units>>) The time to wait for the job to be deleted.
|
|
|
|
Defaults to 1 minute.
|
|
|
|
|
|
|
|
|
2019-07-05 07:34:05 -04:00
|
|
|
|
|
|
|
[[ml-delete-dfanalytics-example]]
|
2020-07-20 16:06:29 -04:00
|
|
|
== {api-examples-title}
|
2019-07-05 07:34:05 -04:00
|
|
|
|
|
|
|
The following example deletes the `loganalytics` {dfanalytics-job}:
|
|
|
|
|
2019-09-09 12:35:50 -04:00
|
|
|
[source,console]
|
2019-07-05 07:34:05 -04:00
|
|
|
--------------------------------------------------
|
|
|
|
DELETE _ml/data_frame/analytics/loganalytics
|
|
|
|
--------------------------------------------------
|
|
|
|
// TEST[skip:TBD]
|
|
|
|
|
|
|
|
The API returns the following result:
|
|
|
|
|
2019-09-06 09:22:08 -04:00
|
|
|
[source,console-result]
|
2019-07-05 07:34:05 -04:00
|
|
|
----
|
|
|
|
{
|
|
|
|
"acknowledged" : true
|
|
|
|
}
|
|
|
|
----
|