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
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