# Manual delete of specific index in data folder leads to all indexes deletion

**URL:** https://discuss.elastic.co/t/manual-delete-of-specific-index-in-data-folder-leads-to-all-indexes-deletion/70694
**Category:** Elasticsearch
**Created:** [January 5, 2017, 3:18pm UTC](https://discuss.elastic.co/t/manual-delete-of-specific-index-in-data-folder-leads-to-all-indexes-deletion/70694 "2017-01-05T15:18:23Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Luca\_Belluccini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luca_belluccini/32/33239_2.png) [@Luca\_Belluccini](https://discuss.elastic.co/u/Luca_Belluccini)
#### Post date: [January 5, 2017, 3:18pm UTC](https://discuss.elastic.co/t/manual-delete-of-specific-index-in-data-folder-leads-to-all-indexes-deletion/70694/1 "2017-01-05T15:18:23Z")

</div>

Hello,  
I am asking this on behalf of a colleague.  
He is using Elasticsearch 2.3.3 and they got an index corruption.  
They decided to delete one folder representing the name of the index which was corrupted.  
After that, they discovered no index was more present.

Some logs were mentioning:  
`java.lang.IllegalArgumentException: Could not load codec 'Lucene54'. Did you forget to add lucene-backward-codecs...`

What would be the root cause of that?

---

<div class="post-metadata">

### Author: ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)
#### Post date: [January 5, 2017, 3:34pm UTC](https://discuss.elastic.co/t/manual-delete-of-specific-index-in-data-folder-leads-to-all-indexes-deletion/70694/2 "2017-01-05T15:34:39Z")

</div>

I don't know why other indices disappeared, but it could be because you should _never_ manually interact (delete, edit, move, etc.) with the files in the data directory. Indices should _only_ ever be interacted with via the API, except in extreme cases which are so rare as to not apply in 99.999% of cases.

---

<div class="post-metadata">

### Author: ![Luca\_Belluccini](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luca_belluccini/32/33239_2.png) [@Luca\_Belluccini](https://discuss.elastic.co/u/Luca_Belluccini)
#### Post date: [January 5, 2017, 3:57pm UTC](https://discuss.elastic.co/t/manual-delete-of-specific-index-in-data-folder-leads-to-all-indexes-deletion/70694/3 "2017-01-05T15:57:42Z")

</div>

I completely agree with you.  
Just wanted to ask how the deletion of index A could lead to deletion of ALL indices.

---

<div class="post-metadata">

### Author: ![theuntergeek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/theuntergeek/32/44961_2.png) [@theuntergeek](https://discuss.elastic.co/u/theuntergeek)
#### Post date: [January 6, 2017, 5:08pm UTC](https://discuss.elastic.co/t/manual-delete-of-specific-index-in-data-folder-leads-to-all-indexes-deletion/70694/4 "2017-01-06T17:08:46Z")

</div>

Probably metadata corruption.

---

<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: [February 3, 2017, 5:08pm UTC](https://discuss.elastic.co/t/manual-delete-of-specific-index-in-data-folder-leads-to-all-indexes-deletion/70694/5 "2017-02-03T17:08:52Z")

</div>

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