# All deleted indices get recovered by ES

**URL:** <https://discuss.elastic.co/t/all-deleted-indices-get-recovered-by-es/14288>\
**Category:** Elasticsearch\
**Created:** [November 6, 2013, 12:47pm UTC](https://discuss.elastic.co/t/all-deleted-indices-get-recovered-by-es/14288 "2013-11-06T12:47:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![a\_r\_ghassemy](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@a\_r\_ghassemy](https://discuss.elastic.co/u/a_r_ghassemy)\
**Post date:** [November 6, 2013, 12:47pm UTC](https://discuss.elastic.co/t/all-deleted-indices-get-recovered-by-es/14288/1 "2013-11-06T12:47:28Z")

</div>

hi

i have made some indices in ES using java api and direct curl commands. i  
check the data folder in ES home and see about 350 indices, so i want to  
delete it cause i dont need any of them and they were all tests.

i tried to delete all by using:  
curl -XDELETE [http://localhost:9200/\_all](http://localhost:9200/_all)  
this action sometimes leaves some of these folders located in "...\elasticsearch-0.90.5\data\elasticsearch\nodes\0\indices" and sometimes works correctly and deletes all.  
but the problem is that everything ever deleted gets recovered at the next run of elasticsearch startup.  
i have also tried deleting with the java api and shift+delete in windows explorer with same results.  
the most disturbing thing is that i can see indices created before i installed my win7 64 bit(indices created when i was using win7 32bit).  
so how does elasticsearch find my old indices(from previous windows installation) and how can i stop it from recovering?

thanx in advance

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![a\_r\_ghassemy](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@a\_r\_ghassemy](https://discuss.elastic.co/u/a_r_ghassemy)\
**Post date:** [November 6, 2013, 1:29pm UTC](https://discuss.elastic.co/t/all-deleted-indices-get-recovered-by-es/14288/2 "2013-11-06T13:29:51Z")

</div>

I should correct something, the indices dont comeback as soon as i start ES  
again. they come with the first rest query that ES receives. for example:  
curl -XPUT [http://localhost:9200/verynewindex](http://localhost:9200/verynewindex)

On Wednesday, November 6, 2013 4:17:28 PM UTC+3:30, [a.r.gh...@gmail.com](mailto:a.r.gh...@gmail.com)  
wrote:

> hi
> 
> i have made some indices in ES using java api and direct curl commands. i  
> check the data folder in ES home and see about 350 indices, so i want to  
> delete it cause i dont need any of them and they were all tests.
> 
> i tried to delete all by using:  
> curl -XDELETE [http://localhost:9200/\_all](http://localhost:9200/_all)  
> this action sometimes leaves some of these folders located in "...\elasticsearch-0.90.5\data\elasticsearch\nodes\0\indices" and sometimes works correctly and deletes all.  
> but the problem is that everything ever deleted gets recovered at the next run of elasticsearch startup.  
> i have also tried deleting with the java api and shift+delete in windows explorer with same results.  
> the most disturbing thing is that i can see indices created before i installed my win7 64 bit(indices created when i was using win7 32bit).  
> so how does elasticsearch find my old indices(from previous windows installation) and how can i stop it from recovering?
> 
> thanx in advance

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:08am UTC](https://discuss.elastic.co/t/all-deleted-indices-get-recovered-by-es/14288/3 "2017-07-06T02:08:33Z")

</div>


