Remove policies from an index Generally available; Added in 6.6.0

POST /{index}/_ilm/remove

Remove the assigned lifecycle policies from an index or a data stream's backing indices. It also stops managing the indices.

Required authorization

  • Index privileges: manage_ilm

Path parameters

  • index string Required

    The name of the index to remove policy on

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • failed_indexes array[string] Required
    • has_failures boolean Required
POST logs-my_app-default/_ilm/remove 
resp = client.ilm.remove_policy( index="logs-my_app-default", )
const response = await client.ilm.removePolicy({ index: "logs-my_app-default", });
response = client.ilm.remove_policy( index: "logs-my_app-default" )
$resp = $client->ilm()->removePolicy([ "index" => "logs-my_app-default", ]);
curl -X POST -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/logs-my_app-default/_ilm/remove"
client.ilm().removePolicy(r -> r .index("logs-my_app-default") ); 
Response examples (200)
A successful response when removing a lifecycle policy from an index.
{ "has_failures" : false, "failed_indexes" : [] }