Delete a dangling index Generally available; Added in 7.9.0
If Elasticsearch encounters index data that is absent from the current cluster state, those indices are considered to be dangling. For example, this can happen if you delete more than cluster.indices.tombstones.size
indices while an Elasticsearch node is offline.
Required authorization
- Cluster privileges:
manage
Query parameters
-
This parameter must be set to true to acknowledge that it will no longer be possible to recove data from the dangling index.
-
Specify timeout for connection to master
External documentation -
Explicit operation timeout
External documentation
DELETE /_dangling/{index_uuid}
Console
DELETE /_dangling/<index-uuid>?accept_data_loss=true
resp = client.dangling_indices.delete_dangling_index( index_uuid="<index-uuid>", accept_data_loss=True, )
const response = await client.danglingIndices.deleteDanglingIndex({ index_uuid: "<index-uuid>", accept_data_loss: "true", });
response = client.dangling_indices.delete_dangling_index( index_uuid: "<index-uuid>", accept_data_loss: "true" )
$resp = $client->danglingIndices()->deleteDanglingIndex([ "index_uuid" => "<index-uuid>", "accept_data_loss" => "true", ]);
curl -X DELETE -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_dangling/<index-uuid>?accept_data_loss=true"