List dangling indices API
Lists dangling indices.
Request
resp = client.dangling_indices.list_dangling_indices() print(resp)
response = client.dangling_indices.list_dangling_indices puts response
const response = await client.danglingIndices.listDanglingIndices(); console.log(response);
GET /_dangling
Prerequisites
- If the Elasticsearch security features are enabled, you must have the
managecluster privilege to use this API.
Description
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.
Use this API to list dangling indices, which you can then import or delete.
Examples
The API returns the following response:
{
"dangling_indices": [
{
"index_name": "my-index-000001",
"index_uuid": "zmM4e0JtBkeUjiHD-MihPQ",
"creation_date_millis": 1589414451372,
"node_ids": [
"pL47UN3dAb2d5RCWP6lQ3e"
]
}
]
}
© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/8.17/dangling-indices-list.html