elasticsearch delete all documents in index code example
Example 1: elasticsearch delete all indicesa
curl -XDELETE localhost:9200/shop
Example 2: elasticsearch delete all indicesa
curl -XDELETE localhost:9200/index/type/documentID
curl -XDELETE localhost:9200/shop
curl -XDELETE localhost:9200/index/type/documentID