All deleted indices get recovered by ES


(a.r.ghassemy) #1

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
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.
For more options, visit https://groups.google.com/groups/opt_out.


(a.r.ghassemy) #2

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

On Wednesday, November 6, 2013 4:17:28 PM UTC+3:30, 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
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.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #3