Delete data streams
Added in 7.9.0
Deletes one or more data streams and their backing indices.
Path parameters
-
name
string | array[string] Required Comma-separated list of data streams to delete. Wildcard (
*
) expressions are supported.
Query parameters
-
master_timeout
string Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.
-
expand_wildcards
string | array[string] Type of data stream that wildcard patterns can match. Supports comma-separated values,such as
open,hidden
.Supported values include:
all
: Match any data stream or index, including hidden ones.open
: Match open, non-hidden indices. Also matches any non-hidden data stream.closed
: Match closed, non-hidden indices. Also matches any non-hidden data stream. Data streams cannot be closed.hidden
: Match hidden data streams and hidden indices. Must be combined withopen
,closed
, orboth
.none
: Wildcard expressions are not accepted.
DELETE
/_data_stream/{name}
curl \
--request DELETE 'http://api.example.com/_data_stream/{name}' \
--header "Authorization: $API_KEY"