Reputation: 504
I have an _index: varnish_logs and _type: varnish
a field having two different values "server" : "india" and "server" : "usa"
Now I want to delete only the records which are in usa.
I tried using
$ curl -XDELETE 'http://localhost:9200/_all/_query?q=server:usa'
response: No handler found for uri [] and method [DELETE]
and also tried to delete all the data using query
curl -XDELETE 'http://localhost:9200/varnish_logs/varnish/_query' -d '
{
"query" :{
"match_all" : {}
}
}'
all I get response: found: "false"
Please let me know where I'm wrong
Upvotes: 5
Views: 9536