# Bulk API - is "delete by query" possible?

**URL:** <https://discuss.elastic.co/t/bulk-api-is-delete-by-query-possible/8065>\
**Category:** Elasticsearch\
**Created:** [June 12, 2012, 8:51pm UTC](https://discuss.elastic.co/t/bulk-api-is-delete-by-query-possible/8065 "2012-06-12T20:51:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anurag\_Biyani](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anurag_biyani/32/2844_2.png) [@Anurag\_Biyani](https://discuss.elastic.co/u/Anurag_Biyani)\
**Post date:** [June 12, 2012, 8:51pm UTC](https://discuss.elastic.co/t/bulk-api-is-delete-by-query-possible/8065/1 "2012-06-12T20:51:07Z")

</div>

Can I do a delete by query ([http://www.elasticsearch.org/guide/](http://www.elasticsearch.org/guide/)  
reference/api/delete-by-query.html) in bulk api call (http://  
[www.elasticsearch.org/guide/reference/api/bulk.html](http://www.elasticsearch.org/guide/reference/api/bulk.html)) ?

## Thanks! Anurag

* * *

The contents of this e-mail and any attachments are confidential and only  
for use by the intended recipient. Any unauthorized use, distribution or  
copying of this message is strictly prohibited. If you are not the intended  
recipient please inform the sender immediately by reply e-mail and delete  
this message from your system. Thank you for your co-operation.

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [June 13, 2012, 10:32am UTC](https://discuss.elastic.co/t/bulk-api-is-delete-by-query-possible/8065/2 "2012-06-13T10:32:22Z")

</div>

On Tue, 2012-06-12 at 13:51 -0700, Anurag Biyani wrote:

> Can I do a delete by query ([Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/)  
> reference/api/delete-by-query.html) in bulk api call (http://  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/bulk.html)) ?

No.

Just create/index/delete

clint

---

<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:24am UTC](https://discuss.elastic.co/t/bulk-api-is-delete-by-query-possible/8065/3 "2017-07-06T03:24:38Z")

</div>


