delete-data-stream.asciidoc 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. [[indices-delete-data-stream]]
  2. === Delete data stream API
  3. ++++
  4. <titleabbrev>Delete data stream</titleabbrev>
  5. ++++
  6. Deletes an existing data stream along with its backing indices.
  7. ////
  8. [source,console]
  9. -----------------------------------
  10. PUT _index_template/template
  11. {
  12. "index_patterns": ["my-data-stream*"],
  13. "data_stream": {
  14. "timestamp_field": "@timestamp"
  15. }
  16. }
  17. PUT /_data_stream/my-data-stream
  18. -----------------------------------
  19. // TESTSETUP
  20. ////
  21. [source,console]
  22. --------------------------------------------------
  23. DELETE _data_stream/my-data-stream
  24. --------------------------------------------------
  25. ////
  26. [source,console]
  27. -----------------------------------
  28. DELETE /_index_template/template
  29. -----------------------------------
  30. // TEST[continued]
  31. ////
  32. [[delete-data-stream-api-request]]
  33. ==== {api-request-title}
  34. `DELETE _data_stream/<data-stream>`
  35. [[delete-data-stream-api-path-params]]
  36. ==== {api-path-parms-title}
  37. `<data-stream>`::
  38. (Required, string) Name or wildcard expression of data stream(s) to delete.