[Mac] Completely Uninstall Elasticsearch Installed with Homebrew

Tadashi Shigeoka ·  Tue, October 17, 2017

I’ll introduce the steps to completely uninstall Elasticsearch that was installed with Homebrew, the macOS package manager.

Elasticsearch | エラスティックサーチ

Stop & Uninstall Elasticsearch

First, stop the Elasticsearch process.

brew services stop [email protected]

Next, uninstall Elasticsearch.

brew uninstall --force [email protected]

Delete Elasticsearch Data & Log Files

Finally, completely delete the directories containing data and log files used by Elasticsearch.

rm -rf /usr/local/var/elasticsearch
rm -rf /usr/local/var/log/elasticsearch*

That’s all from the Gemba, where I want to manage Elasticsearch with Docker instead of Homebrew.