# DeleteByID: best solution?

**URL:** <https://discuss.elastic.co/t/deletebyid-best-solution/23057>\
**Category:** Elasticsearch\
**Created:** [April 2, 2015, 8:47am UTC](https://discuss.elastic.co/t/deletebyid-best-solution/23057 "2015-04-02T08:47:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ku3ia](https://avatars.discourse-cdn.com/v4/letter/k/c89c15/32.png) [@ku3ia](https://discuss.elastic.co/u/ku3ia)\
**Post date:** [April 2, 2015, 8:47am UTC](https://discuss.elastic.co/t/deletebyid-best-solution/23057/1 "2015-04-02T08:47:19Z")

</div>

Hi all!  
Please, advise.  
I have a cluster, let say, with 5 indices. Each index contains two types. I need to delete some records. But I only know the ID of these records. I haven't any information about index and type to which these records belong. So my question is: how to delete records in fast and light way via bulk api.

Thanks for any help.

---

<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:22am UTC](https://discuss.elastic.co/t/deletebyid-best-solution/23057/2 "2017-07-06T00:22:06Z")

</div>

Closed on July 6, 2017, 12:22am UTC


