# Delete unassigned DANGLING\_INDEX\_IMPORTED shards

**URL:** <https://discuss.elastic.co/t/delete-unassigned-dangling-index-imported-shards/146672>\
**Category:** Elasticsearch\
**Created:** [August 30, 2018, 10:17am UTC](https://discuss.elastic.co/t/delete-unassigned-dangling-index-imported-shards/146672 "2018-08-30T10:17:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lunatic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lunatic/32/55516_2.png) [@lunatic](https://discuss.elastic.co/u/lunatic)\
**Post date:** [August 30, 2018, 10:17am UTC](https://discuss.elastic.co/t/delete-unassigned-dangling-index-imported-shards/146672/1 "2018-08-30T10:17:08Z")

</div>

I have unassigned shards in my cluster,

execute:

```auto
GET /_cluster/allocation/explain

```

result:

```auto
{
  "index": "error-log-2018-05-05",
  "shard": 3,
  "primary": true,
  "current_state": "unassigned",
  "unassigned_info": {
    "reason": "DANGLING_INDEX_IMPORTED",
    "at": "2018-08-30T10:11:44.011Z",
    "last_allocation_status": "no_valid_shard_copy"
  },
  "can_allocate": "no_valid_shard_copy",
  "allocate_explanation": "cannot allocate because a previous copy of the primary shard existed but can no longer be found on the nodes in the cluster",
  "node_allocation_decisions": [
    {
      "node_id": "-Kebh1FtQVmAs8DDkrP8Kw",
      "node_name": "node-17",
      "transport_address": "172.31.1.17:9300",
      "node_attributes": {
        "xpack.installed": "true"
      },
      "node_decision": "no",
      "store": {
        "found": false
      }
    }
    ...
  ]
}

```

How to delete the unassigned shards? I already delete the shards long ago.

@Christian_Dahlqvist please have a look. Thanks!

---

<div class="post-metadata">

**Author:** ![lunatic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lunatic/32/55516_2.png) [@lunatic](https://discuss.elastic.co/u/lunatic)\
**Post date:** [September 3, 2018, 4:25am UTC](https://discuss.elastic.co/t/delete-unassigned-dangling-index-imported-shards/146672/2 "2018-09-03T04:25:16Z")

</div>

Solved at [Endless creating index after delete another index](https://discuss.elastic.co/t/endless-creating-index-after-delete-another-index/146334/5?u=lunatic)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 1, 2018, 4:25am UTC](https://discuss.elastic.co/t/delete-unassigned-dangling-index-imported-shards/146672/3 "2018-10-01T04:25:18Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
