Elasticsearch commands

Check elasticsearch is up and running

curl localhost:9200

Delete an index

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

Delete all indices

curl -X DELETE localhost:9200/_all

List all indexes

curl -X GET 'http://localhost:9200/_cat/indices?v'