delete all index from elasticsearch

If you want to delete all indexes from elasticsearch then this command can be handy for you.

curl -X DELETE 'http://localhost:9200/_all'

This is very useful for development and needs to be reset back to a scratch (empty) database.