Skip to content

Instantly share code, notes, and snippets.

@mahemoff
Created May 18, 2017 04:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mahemoff/355d891b9904425175c6c5e80d27fc6c to your computer and use it in GitHub Desktop.
Save mahemoff/355d891b9904425175c6c5e80d27fc6c to your computer and use it in GitHub Desktop.
How to destroy all ElasticSearch indexes on Homebrew

Sometimes it gets into inconsistent state. For testing purposes, we don't want to debug it, we just want to start again.

  1. kill elasticsearch if it's running
  2. brew info elasticsearch
  3. Look for a line like `Data: /usr/local/var/elasticsearch/elasticsearch_foo/
  4. rm -fr /usr/local/var/elasticsearch/elasticsearch_foo
  5. restart elasticsearch and enjoy your tabula rasa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment