# Delete the fields in the elasticsearch index

**URL:** <https://discuss.elastic.co/t/delete-the-fields-in-the-elasticsearch-index/189538>\
**Category:** Elasticsearch\
**Created:** [July 9, 2019, 11:50am UTC](https://discuss.elastic.co/t/delete-the-fields-in-the-elasticsearch-index/189538 "2019-07-09T11:50:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hengheng1](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@Hengheng1](https://discuss.elastic.co/u/Hengheng1)\
**Post date:** [July 9, 2019, 11:50am UTC](https://discuss.elastic.co/t/delete-the-fields-in-the-elasticsearch-index/189538/1 "2019-07-09T11:50:59Z")

</div>

What should I do to delete the fields in the elasticsearch index?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 9, 2019, 8:54pm UTC](https://discuss.elastic.co/t/delete-the-fields-in-the-elasticsearch-index/189538/2 "2019-07-09T20:54:27Z")

</div>

Reindex all the documents without the fields you want to delete. Note that won't remove the field from the mapping.  
Might be better to reindex to a new index though.

---

<div class="post-metadata">

**Author:** ![Hengheng1](https://avatars.discourse-cdn.com/v4/letter/h/7ab992/32.png) [@Hengheng1](https://discuss.elastic.co/u/Hengheng1)\
**Post date:** [July 11, 2019, 6:44am UTC](https://discuss.elastic.co/t/delete-the-fields-in-the-elasticsearch-index/189538/3 "2019-07-11T06:44:33Z")

</div>

thank you very much

---

<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:** [August 8, 2019, 6:44am UTC](https://discuss.elastic.co/t/delete-the-fields-in-the-elasticsearch-index/189538/4 "2019-08-08T06:44:35Z")

</div>

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