# No uri handler found for method XDELETE

**URL:** <https://discuss.elastic.co/t/no-uri-handler-found-for-method-xdelete/40202>\
**Category:** Elasticsearch\
**Created:** [January 27, 2016, 9:17am UTC](https://discuss.elastic.co/t/no-uri-handler-found-for-method-xdelete/40202 "2016-01-27T09:17:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sreevatsa\_Vadiraj](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@Sreevatsa\_Vadiraj](https://discuss.elastic.co/u/Sreevatsa_Vadiraj)\
**Post date:** [January 27, 2016, 9:17am UTC](https://discuss.elastic.co/t/no-uri-handler-found-for-method-xdelete/40202/1 "2016-01-27T09:17:21Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![tanguy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tanguy/32/6030_2.png) [@tanguy](https://discuss.elastic.co/u/tanguy)\
**Post date:** [January 27, 2016, 9:22am UTC](https://discuss.elastic.co/t/no-uri-handler-found-for-method-xdelete/40202/2 "2016-01-27T09:22:30Z")

</div>

Hi,

> [@Sreevatsa\_Vadiraj](#):
>
> 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.

Tanguy

---

<div class="post-metadata">

**Author:** ![Sreevatsa\_Vadiraj](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@Sreevatsa\_Vadiraj](https://discuss.elastic.co/u/Sreevatsa_Vadiraj)\
**Post date:** [January 27, 2016, 9:42am UTC](https://discuss.elastic.co/t/no-uri-handler-found-for-method-xdelete/40202/3 "2016-01-27T09:42:12Z")

</div>

Thanks a lot [SIr.It](http://SIr.It) worked.I was committing a mistake by adding the type as well.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:21pm UTC](https://discuss.elastic.co/t/no-uri-handler-found-for-method-xdelete/40202/4 "2017-07-05T23:21:09Z")

</div>


