# No handler found for uri \[/.kibana/\_query\] and method \[DELETE\]

**URL:** <https://discuss.elastic.co/t/no-handler-found-for-uri-kibana--query-and-method-delete/90611>\
**Category:** Elasticsearch\
**Created:** [June 23, 2017, 10:04am UTC](https://discuss.elastic.co/t/no-handler-found-for-uri-kibana--query-and-method-delete/90611 "2017-06-23T10:04:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arvin9190](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@Arvin9190](https://discuss.elastic.co/u/Arvin9190)\
**Post date:** [June 23, 2017, 10:04am UTC](https://discuss.elastic.co/t/no-handler-found-for-uri-kibana--query-and-method-delete/90611/1 "2017-06-23T10:04:30Z")

</div>

Hi All,

We try deleting .kibana objects using delete\_by\_query API. It is working fine for few Elasticsearch.  
For few ES, we are getting, "No handler found for uri [/.kibana/\_query] and method [DELETE]" exception.  
Whereas remaining operations like creating a new index, creating new kibana objects are fine in all scenarios.  
We are using super user to do all processes

Please advice at what scenarios, this exception occurs.

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [June 23, 2017, 11:03am UTC](https://discuss.elastic.co/t/no-handler-found-for-uri-kibana--query-and-method-delete/90611/2 "2017-06-23T11:03:11Z")

</div>

not sure what version you have been using before but the delete by query API has changed somewhat in recent versions. Documentation on how to use the current version can be found here: [https://www.elastic.co/guide/en/elasticsearch/reference/5.4/docs-delete-by-query.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/docs-delete-by-query.html)

---

<div class="post-metadata">

**Author:** ![Arvin9190](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@Arvin9190](https://discuss.elastic.co/u/Arvin9190)\
**Post date:** [June 23, 2017, 11:06am UTC](https://discuss.elastic.co/t/no-handler-found-for-uri-kibana--query-and-method-delete/90611/3 "2017-06-23T11:06:35Z")

</div>

HI,

We are using ES 5.x version. We use elasticsearch python module to access ES.  
es.delete\_by\_query(index,body) is what we use

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [June 23, 2017, 11:09am UTC](https://discuss.elastic.co/t/no-handler-found-for-uri-kibana--query-and-method-delete/90611/4 "2017-06-23T11:09:26Z")

</div>

Did you update your python client to the latest version? From the error you are getting above it looks like your python client is attempting to make calls to the old API

---

<div class="post-metadata">

**Author:** ![Arvin9190](https://avatars.discourse-cdn.com/v4/letter/a/d07c76/32.png) [@Arvin9190](https://discuss.elastic.co/u/Arvin9190)\
**Post date:** [June 23, 2017, 11:10am UTC](https://discuss.elastic.co/t/no-handler-found-for-uri-kibana--query-and-method-delete/90611/5 "2017-06-23T11:10:38Z")

</div>

We are using elasticsearch 5.4 python module. Believe it as the latest one.

---

<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 21, 2017, 11:10am UTC](https://discuss.elastic.co/t/no-handler-found-for-uri-kibana--query-and-method-delete/90611/6 "2017-07-21T11:10:40Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
