Skip to content

Instantly share code, notes, and snippets.

@seiteta
Last active September 13, 2017 12:29
Show Gist options
  • Save seiteta/d8123bdd895fa89465a50eef91d1bf2d to your computer and use it in GitHub Desktop.
Save seiteta/d8123bdd895fa89465a50eef91d1bf2d to your computer and use it in GitHub Desktop.
Delete an index in Elasticsearch
# List all indices:
curl -XGET 'localhost:9200/_cat/indices?v&pretty'
# Delete the index (here `myindex`):
curl -XDELETE 'localhost:9200/myindex?pretty'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment