Delete data stream lifecycles
Generally available; Added in 8.11.0
Removes the data stream lifecycle from a data stream, rendering it not managed by the data stream lifecycle.
Path parameters
-
name
string | array[string] Required A comma-separated list of data streams of which the data stream lifecycle will be deleted; use
*
to get all data streams
Query parameters
-
expand_wildcards
string | array[string] Whether wildcard expressions should get expanded to open or closed indices (default: open)
Values are
all
,open
,closed
,hidden
, ornone
. -
master_timeout
string Specify timeout for connection to master
Values are
-1
or0
. -
timeout
string Explicit timestamp for the document
Values are
-1
or0
.
DELETE
/_data_stream/{name}/_lifecycle
Console
DELETE _data_stream/my-data-stream/_lifecycle
resp = client.indices.delete_data_lifecycle(
name="my-data-stream",
)
const response = await client.indices.deleteDataLifecycle({
name: "my-data-stream",
});
response = client.indices.delete_data_lifecycle(
name: "my-data-stream"
)
$resp = $client->indices()->deleteDataLifecycle([
"name" => "my-data-stream",
]);
curl -X DELETE -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_data_stream/my-data-stream/_lifecycle"
Response examples (200)
A successful response for deleting a data stream lifecycle.
{
"acknowledged": true
}