Delete data stream API
Delete data stream API
New API reference
For the most up-to-date API details, refer to Data stream APIs.
Deletes one or more data streams and their backing indices. See Delete a data stream.
resp = client.indices.delete_data_stream(
name="my-data-stream",
)
print(resp)
response = client.indices.delete_data_stream(
name: 'my-data-stream'
)
puts response
const response = await client.indices.deleteDataStream({
name: "my-data-stream",
});
console.log(response);
DELETE /_data_stream/my-data-stream
Request
DELETE /_data_stream/<data-stream>
Prerequisites
- If the Elasticsearch security features are enabled, you must have the
delete_index
ormanage
index privilege for the data stream.
Path parameters
<data-stream>
(Required, string) Comma-separated list of data streams to delete. Wildcard (*
) expressions are supported.
Query parameters
expand_wildcards
(Optional, string) Type of data stream that wildcard patterns 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 patterns are not accepted.
Defaults to open
.
当前内容版权归 elasticsearch 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 elasticsearch .