delete-analytics-collection.asciidoc 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. [role="xpack"]
  2. [[delete-analytics-collection]]
  3. === Delete Analytics Collection
  4. beta::[]
  5. ++++
  6. <titleabbrev>Delete Analytics Collection</titleabbrev>
  7. ++++
  8. ////
  9. [source,console]
  10. ----
  11. PUT _application/analytics/my_analytics_collection
  12. ----
  13. // TESTSETUP
  14. ////
  15. Removes an Analytics Collection and its associated data stream.
  16. [[delete-analytics-collection-request]]
  17. ==== {api-request-title}
  18. `DELETE _application/analytics/<name>`
  19. [[delete-analytics-collection-prereq]]
  20. ==== {api-prereq-title}
  21. Requires the `manage_behavioral_analytics` cluster privilege.
  22. [[delete-analytics-collection-path-params]]
  23. ==== {api-path-parms-title}
  24. `<name>`::
  25. (Required, string)
  26. [[delete-analytics-collection-response-codes]]
  27. ==== {api-response-codes-title}
  28. `400`::
  29. The `name` was not provided.
  30. `404` (Missing resources)::
  31. No Analytics Collection matching `name` could be found.
  32. [[delete-analytics-collection-example]]
  33. ==== {api-examples-title}
  34. The following example deletes the Analytics Collection named `my_analytics_collection`:
  35. [source,console]
  36. ----
  37. DELETE _application/analytics/my_analytics_collection/
  38. ----