1
0

delete-dfanalytics.asciidoc 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. [role="xpack"]
  2. [testenv="platinum"]
  3. [[delete-dfanalytics]]
  4. = Delete {dfanalytics-jobs} API
  5. [subs="attributes"]
  6. ++++
  7. <titleabbrev>Delete {dfanalytics-jobs}</titleabbrev>
  8. ++++
  9. Deletes an existing {dfanalytics-job}.
  10. experimental[]
  11. [[ml-delete-dfanalytics-request]]
  12. == {api-request-title}
  13. `DELETE _ml/data_frame/analytics/<data_frame_analytics_id>`
  14. [[ml-delete-dfanalytics-prereq]]
  15. == {api-prereq-title}
  16. If the {es} {security-features} are enabled, you must have the following
  17. built-in roles or equivalent privileges:
  18. * `machine_learning_admin`
  19. For more information, see <<built-in-roles>> and {ml-docs-setup-privileges}.
  20. [[ml-delete-dfanalytics-path-params]]
  21. == {api-path-parms-title}
  22. `<data_frame_analytics_id>`::
  23. (Required, string)
  24. include::{es-repo-dir}/ml/ml-shared.asciidoc[tag=job-id-data-frame-analytics]
  25. [[ml-delete-dfanalytics-query-params]]
  26. == {api-query-parms-title}
  27. `force`::
  28. (Optional, boolean) If `true`, it deletes a job that is not stopped; this method is
  29. quicker than stopping and deleting the job.
  30. `timeout`::
  31. (Optional, <<time-units,time units>>) The time to wait for the job to be deleted.
  32. Defaults to 1 minute.
  33. [[ml-delete-dfanalytics-example]]
  34. == {api-examples-title}
  35. The following example deletes the `loganalytics` {dfanalytics-job}:
  36. [source,console]
  37. --------------------------------------------------
  38. DELETE _ml/data_frame/analytics/loganalytics
  39. --------------------------------------------------
  40. // TEST[skip:TBD]
  41. The API returns the following result:
  42. [source,console-result]
  43. ----
  44. {
  45. "acknowledged" : true
  46. }
  47. ----