# Delete by query on multiple values

**URL:** <https://discuss.elastic.co/t/delete-by-query-on-multiple-values/23299>\
**Category:** Elasticsearch\
**Created:** [April 17, 2015, 5:32pm UTC](https://discuss.elastic.co/t/delete-by-query-on-multiple-values/23299 "2015-04-17T17:32:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Slava\_G](https://avatars.discourse-cdn.com/v4/letter/s/e9c0ed/32.png) [@Slava\_G](https://discuss.elastic.co/u/Slava_G)\
**Post date:** [April 17, 2015, 5:32pm UTC](https://discuss.elastic.co/t/delete-by-query-on-multiple-values/23299/1 "2015-04-17T17:32:53Z")

</div>

Hi,  
I'm trying to understand how can I remove multiple documents by query,  
where query is done on some id field (not the ES id field) in the document  
and I want to delete number of documents.  
For example I have 5 documents to delete, their internal ids : 3,5,6,7,8.  
What is more efficient or best way to do that ?

Thanks.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/22ea9d06-e92d-422c-9019-0aaa1cfafcc5%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/22ea9d06-e92d-422c-9019-0aaa1cfafcc5%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:18am UTC](https://discuss.elastic.co/t/delete-by-query-on-multiple-values/23299/2 "2017-07-06T00:18:59Z")

</div>


