# How to support Bulk Delete in Es-hadoop?

**URL:** <https://discuss.elastic.co/t/how-to-support-bulk-delete-in-es-hadoop/65326>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [November 8, 2016, 9:35am UTC](https://discuss.elastic.co/t/how-to-support-bulk-delete-in-es-hadoop/65326 "2016-11-08T09:35:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhifengMaBeijing](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zhifengmabeijing/32/23882_2.png) [@zhifengMaBeijing](https://discuss.elastic.co/u/zhifengMaBeijing)\
**Post date:** [November 8, 2016, 9:35am UTC](https://discuss.elastic.co/t/how-to-support-bulk-delete-in-es-hadoop/65326/1 "2016-11-08T09:35:43Z")

</div>

Hi All,

My use case is as follows: I want to implement a BulkDelete with the help of ES-spark library which will be called by each partition.

rdd.foreachpartition{ p=\>  
BulkDelete(index,type,p)  
}

def BulkDelete(indexO: String, tyO: String, ids: Iterable[String]): Unit = {  
....  
}

Could you suggest how to use es-spark library to achieve that?

best regards,  
zhifeng

---

<div class="post-metadata">

**Author:** ![james.baiera](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/james.baiera/32/10209_2.png) [@james.baiera](https://discuss.elastic.co/u/james.baiera)\
**Post date:** [November 10, 2016, 6:18pm UTC](https://discuss.elastic.co/t/how-to-support-bulk-delete-in-es-hadoop/65326/2 "2016-11-10T18:18:51Z")

</div>

@zhifengMaBeijing Delete is not yet supported for ES-Hadoop. There is a ticket open for tracking this as a feature here: [https://github.com/elastic/elasticsearch-hadoop/issues/348#issuecomment-69394134](https://github.com/elastic/elasticsearch-hadoop/issues/348#issuecomment-69394134)

---

<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:** [December 8, 2016, 6:19pm UTC](https://discuss.elastic.co/t/how-to-support-bulk-delete-in-es-hadoop/65326/3 "2016-12-08T18:19:31Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
