delete documents from index elasticsearch python code example Example: delete index elasticsearch curl -X DELETE 'http://localhost:9200/_all'