# How to Delete Data from Elasticsearch

**URL:** <https://discuss.elastic.co/t/how-to-delete-data-from-elasticsearch/158048>\
**Category:** Elasticsearch\
**Created:** [November 23, 2018, 8:48pm UTC](https://discuss.elastic.co/t/how-to-delete-data-from-elasticsearch/158048 "2018-11-23T20:48:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff23](https://avatars.discourse-cdn.com/v4/letter/j/f14d63/32.png) [@Jeff23](https://discuss.elastic.co/u/Jeff23)\
**Post date:** [November 23, 2018, 8:48pm UTC](https://discuss.elastic.co/t/how-to-delete-data-from-elasticsearch/158048/1 "2018-11-23T20:48:32Z")

</div>

Hello,

I am new in Elasticsearch, I need to delete data from a cluster. This is what I use to query the data from Dremio:

SELECT \* FROM data1."mydoc".doc

How can I delete "mydoc" from Elasticsearch??

I have more information in Elasticsearch that cannot be deleted. I need to be very careful while deleting the data.

Please let me know if more information is needed.

I appreciate any help with this request.

Thank you and regards.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [November 24, 2018, 3:07am UTC](https://discuss.elastic.co/t/how-to-delete-data-from-elasticsearch/158048/2 "2018-11-24T03:07:49Z")

</div>

[https://www.elastic.co/guide/en/elasticsearch/reference/6.5/docs-delete-by-query.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.5/docs-delete-by-query.html) is what you want. But it's expensive to run and you should take a backup as well.

---

<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 22, 2018, 3:07am UTC](https://discuss.elastic.co/t/how-to-delete-data-from-elasticsearch/158048/3 "2018-12-22T03:07:57Z")

</div>

Closed on December 22, 2018, 3:07am UTC

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