123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- [[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]
- -----------------------------------
- PUT _index_template/template
- {
- "index_patterns": ["my-data-stream*"],
- "template": {
- "mappings": {
- "properties": {
- "@timestamp": {
- "type": "date"
- }
- }
- }
- },
- "data_stream": {
- "timestamp_field": "@timestamp"
- }
- }
- PUT /_data_stream/my-data-stream
- -----------------------------------
- // TESTSETUP
- ////
- [source,console]
- --------------------------------------------------
- DELETE _data_stream/my-data-stream
- --------------------------------------------------
- ////
- [source,console]
- -----------------------------------
- DELETE /_index_template/template
- -----------------------------------
- // TEST[continued]
- ////
- [[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.
|