delete-analytics-collection.asciidoc 1007 B

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