No uri handler found for method XDELETE


(Sreevatsa Vadiraj) #1

i have used logstash to fetch data from mysql to elasticsearch in the index:det and type:contact.

when i type, curl -XGET 'localhoost:9200/det/contact' ,it gives this error:

No uri handler found for index:det and method[DELETE].
What is the error??
How do i delete the contents fetched by elasticseach ?


(Tanguy) #2

Hi,

Deleting an index can be done using curl -XDELETE 'http://your-host:9200/your-index'.
With curl, you can add the flag -v to see which HTTP method has been sent.

Tanguy


(Sreevatsa Vadiraj) #3

Thanks a lot SIr.It worked.I was committing a mistake by adding the type as well.


(system) #4