from elasticsearch import Elasticsearch es = Elasticsearch() es.indices.delete(index='test-index', ignore=[400, 404])
curl -XDELETE localhost:9200/posts
curl -X DELETE 'http://localhost:9200/_all'
DELETE /my-index-000001