Clean uninstall of elasticsearch

I was using logstash v.1.1.13 with the latest version of elasticsearch, ie,
v.0.90.2. But, it wasn't working well and I then read on logstash's site that
I had to install elasticsearch v.0.20.6. So, I did an rm -rf on the
existing elasticsearch and installed v.0.20.6. The problem is that somehow,
it still has retained the old files in the data folder and is unable to
function properly as it looks for files that do not exist (from the old
installation). I am surprised as I had done an rm -rf and it still was
looking for the old files instead of silently looking at the supposedly
empty cluster due to the fresh installation. After breaking my head over a
few things I tried, I finally did a curl -XDELETE, and after this,
elasticsearch starts normally with no errors, but when I go to
localhost:9200, this is what it says:

"ok" : true,
"status" : 200,
"name" : "Blob",
"version" : {
"number" : "0.90.2",
"snapshot_build" : false,
"lucene_version" : "4.3.1"
"tagline" : "You Know, for Search"

Any idea why? And also, how to avoid this error? Please see this question of mine on stackoverflow for the error that was occurring before I did the curl -XDELETE.

Thank you!

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
For more options, visit