删除文件是相当简单的。这个例子说明了如何删除我们以前的ID为2的customer:
curl -XDELETE 'localhost:9200/customer/external/2?pretty'
该 delete-by-query 插件可以删除所有特定查询匹配的文档。