# Delete By Query Plugin Error

**URL:** <https://discuss.elastic.co/t/delete-by-query-plugin-error/35399>\
**Category:** Elasticsearch\
**Created:** [November 24, 2015, 9:07am UTC](https://discuss.elastic.co/t/delete-by-query-plugin-error/35399 "2015-11-24T09:07:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ton](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@ton](https://discuss.elastic.co/u/ton)\
**Post date:** [November 24, 2015, 9:07am UTC](https://discuss.elastic.co/t/delete-by-query-plugin-error/35399/1 "2015-11-24T09:07:57Z")

</div>

Hi,  
i am tring to use the new Delete By Query Plugin in ES 2.0

DeleteByQueryResponse deleteByQueryResponse =  
new DeleteByQueryRequestBuilder(client, DeleteByQueryAction.INSTANCE)  
.setIndices("indices")  
.get();

and getting the following error :

Caused by: java.lang.IllegalStateException: failed to find action [org.elasticsearch.action.deletebyquery.DeleteByQueryAction@7c1ed3a2] to execute  
at org.elasticsearch.client.node.NodeClient.doExecute(NodeClient.java:56)  
at org.elasticsearch.client.support.AbstractClient.execute(AbstractClient.java:347)  
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:85)  
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:59)  
at org.elasticsearch.action.deletebyquery.DeleteByQueryRequestBuilder.execute(DeleteByQueryRequestBuilder.java:172)  
at org.elasticsearch.action.ActionRequestBuilder.get(ActionRequestBuilder.java:67)

---

<div class="post-metadata">

**Author:** ![ton](https://avatars.discourse-cdn.com/v4/letter/t/e0b2c6/32.png) [@ton](https://discuss.elastic.co/u/ton)\
**Post date:** [November 24, 2015, 12:14pm UTC](https://discuss.elastic.co/t/delete-by-query-plugin-error/35399/2 "2015-11-24T12:14:27Z")

</div>

solved added "plugin.types", "org.elasticsearch.plugin.deletebyquery.DeleteByQueryPlugin" to setting

---

<div class="post-metadata">

**Author:** ![francis.roux](https://avatars.discourse-cdn.com/v4/letter/f/e47774/32.png) [@francis.roux](https://discuss.elastic.co/u/francis.roux)\
**Post date:** [June 6, 2016, 7:41pm UTC](https://discuss.elastic.co/t/delete-by-query-plugin-error/35399/3 "2016-06-06T19:41:19Z")

</div>

Hi,

I'm getting the same error you encountered when trying to use the Delete By Query Plugin.  
Where did you add the "plugin.types" setting ?

---

<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, 10:45pm UTC](https://discuss.elastic.co/t/delete-by-query-plugin-error/35399/4 "2017-07-05T22:45:52Z")

</div>


