# How to delete documents from Elasticsearch in Spark?

**URL:** <https://discuss.elastic.co/t/how-to-delete-documents-from-elasticsearch-in-spark/22986>\
**Category:** Elasticsearch\
**Created:** [March 30, 2015, 5:28pm UTC](https://discuss.elastic.co/t/how-to-delete-documents-from-elasticsearch-in-spark/22986 "2015-03-30T17:28:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmitriyf](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@dmitriyf](https://discuss.elastic.co/u/dmitriyf)\
**Post date:** [March 30, 2015, 5:28pm UTC](https://discuss.elastic.co/t/how-to-delete-documents-from-elasticsearch-in-spark/22986/1 "2015-03-30T17:28:27Z")

</div>

Hello,

I would like to delete documents from Elasticsearch in Spark.  
I found that this feature seems to be planned for elasticsearch-hadoop  
v2.1.0.Beta4 [https://github.com/elastic/elasticsearch-hadoop/issues/348](https://github.com/elastic/elasticsearch-hadoop/issues/348)  
Could you please confirm whether it will be added only in v2.1.0.Beta4 or  
is it already found in development master (BUILD\_SNAPSHOT)?  
If the feature is available in development master, can you please post some  
example of how to use it?

Thanks,  
Dmitriy Fingerman

--  
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/5e7751f5-479e-47ec-b7be-8f9e7e365cf2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5e7751f5-479e-47ec-b7be-8f9e7e365cf2%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![costin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/costin/32/44950_2.png) [@costin](https://discuss.elastic.co/u/costin)\
**Post date:** [March 30, 2015, 5:55pm UTC](https://discuss.elastic.co/t/how-to-delete-documents-from-elasticsearch-in-spark/22986/2 "2015-03-30T17:55:22Z")

</div>

If the issue is still open, then the feature hasn't been addressed.  
When an issue is closed, you'll see the reason why that is - typically with links to the commit and also the doc updates  
(in case of a new feature).  
The docs are built roughly every hour so any update will be seen on the website as well (under its relevant path  
current,2.1Beta or master).

On 3/30/15 8:28 PM, Dmitriy Fingerman wrote:

> Hello,
> 
> I would like to delete documents from Elasticsearch in Spark.  
> I found that this feature seems to be planned for elasticsearch-hadoop v2.1.0.Beta4  
> [Add support for document delete in streaming map reduce · Issue #348 · elastic/elasticsearch-hadoop · GitHub](https://github.com/elastic/elasticsearch-hadoop/issues/348)  
> Could you please confirm whether it will be added only in v2.1.0.Beta4 or is it already found in development master  
> (BUILD\_SNAPSHOT)?  
> If the feature is available in development master, can you please post some example of how to use it?
> 
> Thanks,  
> Dmitriy Fingerman
> 
> --  
> 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) [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/5e7751f5-479e-47ec-b7be-8f9e7e365cf2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5e7751f5-479e-47ec-b7be-8f9e7e365cf2%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/5e7751f5-479e-47ec-b7be-8f9e7e365cf2%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/5e7751f5-479e-47ec-b7be-8f9e7e365cf2%40googlegroups.com?utm_medium=email&utm_source=footer).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Costin

--  
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/55198E0A.9040107%40gmail.com](https://groups.google.com/d/msgid/elasticsearch/55198E0A.9040107%40gmail.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:23am UTC](https://discuss.elastic.co/t/how-to-delete-documents-from-elasticsearch-in-spark/22986/3 "2017-07-06T00:23:03Z")

</div>


