This assumes that elasticsearch is running on localhost with its management port being 9200.
localhost
9200
curl -XGET http://localhost:9200/_cat/indices?v
curl -XDELETE http://localhost:9200/index_name
curl -XDELETE http://localhost:9200/_all