You are looking at documentation for an older release.
Not what you want? See the
current release documentation.
Deleting Documentsedit
Deleting a document is fairly straightforward. This example shows how to delete our previous customer with the ID of 2:
curl -XDELETE 'localhost:9200/customer/external/2?pretty'
The delete-by-query
plugin can delete all documents matching a specific query.