# How to delete data by id in spark

**URL:** <https://discuss.elastic.co/t/how-to-delete-data-by-id-in-spark/106282>\
**Category:** Elasticsearch\
**Tags:** es-hadoop\
**Created:** [November 3, 2017, 8:21am UTC](https://discuss.elastic.co/t/how-to-delete-data-by-id-in-spark/106282 "2017-11-03T08:21:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hyitclj](https://avatars.discourse-cdn.com/v4/letter/h/cab0a1/32.png) [@hyitclj](https://discuss.elastic.co/u/hyitclj)\
**Post date:** [November 3, 2017, 8:21am UTC](https://discuss.elastic.co/t/how-to-delete-data-by-id-in-spark/106282/1 "2017-11-03T08:21:15Z")

</div>

I use spark sql to search ES data,that is OK,  
but ,in my new business I want delete by id in my spark task,how to solve it ?

---

<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 1, 2017, 8:21am UTC](https://discuss.elastic.co/t/how-to-delete-data-by-id-in-spark/106282/2 "2017-12-01T08:21:16Z")

</div>

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