Delete all indices in your Elastic Search cluster
A quick clobber in case you ever need it. I'd recommend only doing this in development :)
for i in `curl 'localhost:9200/_cat/indices?v' | tail -n +2 | awk '{print $2}'`; do curl -XDELETE "http://127.0.0.1:9200/$i"; done
Written by Daniel Draper
Related protips
1 Response
how about curl -XDELETE "http://127.0.0.1:9200/_all"
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Elasticsearch
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#