I am trying to delete data of particular type from Elasticsearch. I am using the Sense plugin within Chrome to execute my delete command. When I execute the command to delete index, it works for id, but not for type. In Sense I used:
DELETE /index- It deleted all data for that index.
DELETE /index/type/id- It delete data of that id.
DELETE /index/type- gives error of No handler.
Than I also tried curl commands via Cygwin to do same task it was not working, but it gave me a message about unknown curl. Please help me to know how to delete data of particular type.
curlby default, so you need to install it before it will work. The reason thatDELETE /index/typeexclaims that there is "No handler" is because the delete API only expects{index}/{type}/{id}or{index}as of ES 2.0.