2020-05-15 10:37:45 -04:00
|
|
|
[[indices-delete-data-stream]]
|
|
|
|
=== Delete data stream API
|
|
|
|
++++
|
|
|
|
<titleabbrev>Delete data stream</titleabbrev>
|
|
|
|
++++
|
|
|
|
|
|
|
|
Deletes an existing data stream along with its backing indices.
|
|
|
|
|
|
|
|
////
|
|
|
|
[source,console]
|
|
|
|
-----------------------------------
|
2020-05-28 09:08:25 -04:00
|
|
|
PUT _index_template/template
|
2020-05-15 10:37:45 -04:00
|
|
|
{
|
2020-05-28 09:08:25 -04:00
|
|
|
"index_patterns": ["my-data-stream*"],
|
|
|
|
"data_stream": {
|
|
|
|
"timestamp_field": "@timestamp"
|
|
|
|
}
|
2020-05-15 10:37:45 -04:00
|
|
|
}
|
2020-05-28 09:08:25 -04:00
|
|
|
|
|
|
|
PUT /_data_stream/my-data-stream
|
2020-05-15 10:37:45 -04:00
|
|
|
-----------------------------------
|
|
|
|
// TESTSETUP
|
|
|
|
////
|
|
|
|
|
|
|
|
[source,console]
|
|
|
|
--------------------------------------------------
|
|
|
|
DELETE _data_stream/my-data-stream
|
|
|
|
--------------------------------------------------
|
|
|
|
|
2020-05-28 09:08:25 -04:00
|
|
|
////
|
|
|
|
[source,console]
|
|
|
|
-----------------------------------
|
|
|
|
DELETE /_index_template/template
|
|
|
|
-----------------------------------
|
|
|
|
// TEST[continued]
|
|
|
|
////
|
2020-05-15 10:37:45 -04:00
|
|
|
|
|
|
|
[[delete-data-stream-api-request]]
|
|
|
|
==== {api-request-title}
|
|
|
|
|
|
|
|
`DELETE _data_stream/<data-stream>`
|
|
|
|
|
|
|
|
|
|
|
|
[[delete-data-stream-api-path-params]]
|
|
|
|
==== {api-path-parms-title}
|
|
|
|
|
|
|
|
`<data-stream>`::
|
|
|
|
(Required, string) Name or wildcard expression of data stream(s) to delete.
|