# How to delete records of unassigned shards?

**URL:** https://discuss.elastic.co/t/how-to-delete-records-of-unassigned-shards/53802
**Category:** Elasticsearch
**Created:** [June 23, 2016, 4:14pm UTC](https://discuss.elastic.co/t/how-to-delete-records-of-unassigned-shards/53802 "2016-06-23T16:14:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bvoros](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bvoros/32/5246_2.png) [@bvoros](https://discuss.elastic.co/u/bvoros)
#### Post date: [June 23, 2016, 4:14pm UTC](https://discuss.elastic.co/t/how-to-delete-records-of-unassigned-shards/53802/1 "2016-06-23T16:14:30Z")

</div>

Hello All,

My Elasticsearch cluster had a wobble. It's now back and all is well, except for having a bunch of shards being reported unassigned, those are indices that do not exist I believe.

The cluster health is red as a result.

How can they be deleted?

Thanks a lot in advance,

Example:  
curl -s -XGET [http://localhost:9200/\_cat/shards](http://localhost:9200/_cat/shards) | fgrep UNASSIGNED

logstash-xxx-2016.04.22 2 p UNASSIGNED  
logstash-xxx-2016.04.22 2 r UNASSIGNED  
logstash-xxx-2016.04.22 0 p UNASSIGNED

---

<div class="post-metadata">

### Author: ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)
#### Post date: [June 23, 2016, 5:08pm UTC](https://discuss.elastic.co/t/how-to-delete-records-of-unassigned-shards/53802/2 "2016-06-23T17:08:09Z")

</div>

You can delete the index but obviously you'll loose the data in it.

---

<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: [July 5, 2017, 10:41pm UTC](https://discuss.elastic.co/t/how-to-delete-records-of-unassigned-shards/53802/3 "2017-07-05T22:41:01Z")

</div>


