How to delete all documents of one type from elasticsearch 2.4 index


(Abhijeet Chinchole) #1

I am trying to delete all documents of one type from index. I have tried many commands but no success. How to do it in elasticsearch 2.4


(Mark Harwood) #2

See the delete by query plugin [1]. Also, pay special attention to the warnings associated with its use [2]

[1] https://www.elastic.co/guide/en/elasticsearch/plugins/current/delete-by-query-usage.html
[2] https://www.elastic.co/guide/en/elasticsearch/plugins/current/delete-by-query-plugin-reason.html


(system) #3