curl -XDELETE localhost:9200/*
Created
August 10, 2016 21:36
-
-
Save diegopacheco/58fd31e442f04a44d49498ec785c1f27 to your computer and use it in GitHub Desktop.
How to Delete All Data in Elasticsearch?
what if my elasticsearch doesn't start because of the big amount of data? is there a way to purge everything without breaking it?
@tosto92 if you can afford to wipe out the structure too, then
- stop elastic service
- rename data dir (append a
~
) usually in/var/lib/elasticsearch
- start service
- recreate indices
- repopulate with data
If it goes bad, just revert the rename in the same manner.
❤️
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
❤