elasticsearch delete index pattern api code example
Example 1: delete index elasticsearch
curl -X DELETE 'http://localhost:9200/_all'
Example 2: elasticsearch delete index
DELETE /my-index-000001
curl -X DELETE 'http://localhost:9200/_all'
DELETE /my-index-000001