Last Updated: February 25, 2016
·
9.378K
· coderdan

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

1 Response
Add your response

how about curl -XDELETE "http://127.0.0.1:9200/_all"

over 1 year ago ·