Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Completly deinstall and remove Elasticsearch for complete restart and begin new

After experimenting with Elasticsearch I'm searching for a way to completely remove everything concerning Elasticsearch on my server. I made quite a few mistakes and want to start completely new with a new installation.

like image 829
Michael Käfer Avatar asked Jul 22 '15 19:07

Michael Käfer


1 Answers

Simply find the Java process that Elasticsearch is in and kill, or use curl -XPOST /*Your Ip*/:9200/_shutdown.

Then remove Elasticsearch from your system by simply deleting the ES files/folder.

Various different setups could require different deletion methods (linux use rm -rf ES dirs, windows the good ol' delete button will work, logstash may require additional steps) but as a general rule it's quite simply to remove.

If you wish to remove only the data you can delete the data dir, or wipe all your indexes and reindex.

like image 144
Daniel Hoffmann-Mitscherling Avatar answered Nov 09 '22 05:11

Daniel Hoffmann-Mitscherling