# Delete documents using DeleteByQuery

**URL:** <https://discuss.elastic.co/t/delete-documents-using-deletebyquery/7438>\
**Category:** Elasticsearch\
**Created:** [April 23, 2012, 5:19am UTC](https://discuss.elastic.co/t/delete-documents-using-deletebyquery/7438 "2012-04-23T05:19:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thanuja\_gandhi](https://avatars.discourse-cdn.com/v4/letter/t/dc4da7/32.png) [@thanuja\_gandhi](https://discuss.elastic.co/u/thanuja_gandhi)\
**Post date:** [April 23, 2012, 5:19am UTC](https://discuss.elastic.co/t/delete-documents-using-deletebyquery/7438/1 "2012-04-23T05:19:51Z")

</div>

Hi All,

Will nested objects get deleted using DeleteByQuery Method in ES 0.19.1  
version?.

Thanks!

Regards,  
Thanuja

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [April 25, 2012, 3:46pm UTC](https://discuss.elastic.co/t/delete-documents-using-deletebyquery/7438/2 "2012-04-25T15:46:01Z")

</div>

No, its still an open bug. You need to delete by id the relevant docs.

On Mon, Apr 23, 2012 at 8:19 AM, thanuja gandhi [thanu27@gmail.com](mailto:thanu27@gmail.com) wrote:

> Hi All,
> 
> Will nested objects get deleted using DeleteByQuery Method in ES 0.19.1  
> version?.
> 
> Thanks!
> 
> Regards,  
> Thanuja

---

<div class="post-metadata">

**Author:** ![thanuja\_gandhi](https://avatars.discourse-cdn.com/v4/letter/t/dc4da7/32.png) [@thanuja\_gandhi](https://discuss.elastic.co/u/thanuja_gandhi)\
**Post date:** [April 26, 2012, 9:39am UTC](https://discuss.elastic.co/t/delete-documents-using-deletebyquery/7438/3 "2012-04-26T09:39:35Z")

</div>

Thanks shay!

On Wed, Apr 25, 2012 at 9:16 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> No, its still an open bug. You need to delete by id the relevant docs.
> 
> On Mon, Apr 23, 2012 at 8:19 AM, thanuja gandhi [thanu27@gmail.com](mailto:thanu27@gmail.com) wrote:
> 
> > Hi All,
> > 
> > Will nested objects get deleted using DeleteByQuery Method in ES 0.19.1  
> > version?.
> > 
> > Thanks!
> > 
> > Regards,  
> > Thanuja

---

<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 6, 2017, 3:31am UTC](https://discuss.elastic.co/t/delete-documents-using-deletebyquery/7438/4 "2017-07-06T03:31:04Z")

</div>


