# Dangling\_index\_imported

**URL:** https://discuss.elastic.co/t/dangling-index-imported/96046
**Category:** Elasticsearch
**Created:** [August 7, 2017, 6:00am UTC](https://discuss.elastic.co/t/dangling-index-imported/96046 "2017-08-07T06:00:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![niraj\_kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/niraj_kumar/32/4130_2.png) [@niraj\_kumar](https://discuss.elastic.co/u/niraj_kumar)
#### Post date: [August 7, 2017, 6:00am UTC](https://discuss.elastic.co/t/dangling-index-imported/96046/1 "2017-08-07T06:00:48Z")

</div>

How can i wipe of my entire elasticsearch. I am trying to delete all the data from my test elasticsearch. I can use the rest api to delete all of them and it says it worked. But after couple of minutes the shards seem to re appear with the following message.

```
 "current_state": "unassigned",
    "unassigned_info": {
        "reason": "DANGLING_INDEX_IMPORTED",
        "at": "2017-08-07T05:53:02.119Z",
        "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": [

```

How can i delete everything in ES.

---

<div class="post-metadata">

### Author: ![s1monw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/s1monw/32/3637_2.png) [@s1monw](https://discuss.elastic.co/u/s1monw)
#### Post date: [August 11, 2017, 9:23am UTC](https://discuss.elastic.co/t/dangling-index-imported/96046/2 "2017-08-11T09:23:51Z")

</div>

you are saying: `But after couple of minutes the shards` do you start up a new node in that time? Also what version of ES are you using?

---

<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: [September 8, 2017, 9:24am UTC](https://discuss.elastic.co/t/dangling-index-imported/96046/3 "2017-09-08T09:24:01Z")

</div>

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