How to completely uninstall elasticsearch?

I am trying to get the ELK stack installed on a CentOS 6.X VPS including WHM.
As I needed to start again from scratch, I uninstalled the elasticsearch using the package manager.
After doing so, my expectation would have been that a

curl -XGET 'http://localhost:9200/'

wouldn't give any feedback.
But here, I receive

{
  "status" : 200,
  "name" : "Abigail Brand",
  "cluster_name" : "elasticsearch",
  "version" : {
"number" : "1.4.0",
"build_hash" : "bc94bd81298f81c656893ab1ddddd30a99356066",
"build_timestamp" : "2014-11-05T14:26:12Z",
"build_snapshot" : false,
"lucene_version" : "4.10.2"
  },
  "tagline" : "You Know, for Search"
}

Trying to remove the package again and to clean the package mangers cache doesn't do the trick.
Any suggestions on how to proceed?
Thank you in advance,
br,

Connor.

1 Like

You apparently have an ES process running. Use e.g. ps aux to locate it and see from where it was started, which directories it might be using and, obviously, its pid so that you can kill it.

2 Likes

Find where is elasticsearch:

find / --name "elasticsearch"

Then remove the folders. Also, remove service script at

/etc/init.d/elasticsearch

It's just java files, no magic (almost).

3 Likes

That was nearly to easy - thank you for that!
Thank you for your help!