No uri handler found for method XDELETE

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 ?


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.


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