# Java - 5.0.0 DeleteByQuery plugin removed in favor of a new Delete By Query API implementation in core

**URL:** <https://discuss.elastic.co/t/java-5-0-0-deletebyquery-plugin-removed-in-favor-of-a-new-delete-by-query-api-implementation-in-core/65011>\
**Category:** Elasticsearch\
**Created:** [November 4, 2016, 1:27pm UTC](https://discuss.elastic.co/t/java-5-0-0-deletebyquery-plugin-removed-in-favor-of-a-new-delete-by-query-api-implementation-in-core/65011 "2016-11-04T13:27:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alpetric](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alpetric/32/12971_2.png) [@alpetric](https://discuss.elastic.co/u/alpetric)\
**Post date:** [November 4, 2016, 1:27pm UTC](https://discuss.elastic.co/t/java-5-0-0-deletebyquery-plugin-removed-in-favor-of-a-new-delete-by-query-api-implementation-in-core/65011/1 "2016-11-04T13:27:30Z")

</div>

According to [1] the plugin is no longer needed as it has been replaced in favor of a delete by query feature in the core. The link redirects me to the REST documentation which describes these features. However, there doesn't seem to be any Java class that allows me to build a DeleteByQueryRequest.

Looks like the following classes are missing:  
DeleteByQueryRequestBuilder  
DeleteByQueryRequest  
DeleteByQueryAction  
...

Am I missing something?

# == Background: I'm trying to upgrade our java client from 2.4.1 to 5.0.0 which uses the delete-by-query plugin

[1] [https://www.elastic.co/guide/en/elasticsearch/plugins/current/plugins-delete-by-query.html](https://www.elastic.co/guide/en/elasticsearch/plugins/current/plugins-delete-by-query.html)

---

<div class="post-metadata">

**Author:** ![alpetric](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alpetric/32/12971_2.png) [@alpetric](https://discuss.elastic.co/u/alpetric)\
**Post date:** [November 4, 2016, 3:42pm UTC](https://discuss.elastic.co/t/java-5-0-0-deletebyquery-plugin-removed-in-favor-of-a-new-delete-by-query-api-implementation-in-core/65011/2 "2016-11-04T15:42:03Z")

</div>

feel free to delete this.

had a problem with dependencies in gradle.

---

<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:06pm UTC](https://discuss.elastic.co/t/java-5-0-0-deletebyquery-plugin-removed-in-favor-of-a-new-delete-by-query-api-implementation-in-core/65011/3 "2017-07-05T22:06:30Z")

</div>


