IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Delete data stream APIedit
Deletes one or more data streams and their backing indices. See Delete a data stream.
DELETE /_data_stream/my-data-stream
Requestedit
DELETE /_data_stream/<data-stream>
Prerequisitesedit
-
If the Elasticsearch security features are enabled, you must have the
delete_index
ormanage
index privilege for the data stream.
Path parametersedit
-
<data-stream>
-
(Required, string)
Comma-separated list of data streams to delete.
Wildcard (
*
) expressions are supported.
Query parametersedit
-
expand_wildcards
-
(Optional, string) Type of data stream that wildcard expressions can match. Supports comma-separated values, such as
open,hidden
. Valid values are:-
all
,hidden
- Match any data stream, including hidden ones.
-
open
,closed
- Matches any non-hidden data stream. Data streams cannot be closed.
-
none
- Wildcard expressions are not accepted.
Defaults to
open
. -