# Delete field from documents

**URL:** <https://discuss.elastic.co/t/delete-field-from-documents/67328>\
**Category:** Elasticsearch\
**Created:** [November 28, 2016, 10:51am UTC](https://discuss.elastic.co/t/delete-field-from-documents/67328 "2016-11-28T10:51:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Smasell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/smasell/32/43483_2.png) [@Smasell](https://discuss.elastic.co/u/Smasell)\
**Post date:** [November 28, 2016, 10:51am UTC](https://discuss.elastic.co/t/delete-field-from-documents/67328/1 "2016-11-28T10:51:23Z")

</div>

Hi!  
I wonder is it possible delete one field from all documents in index. My ES version is 1.6

---

<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:** [November 28, 2016, 12:03pm UTC](https://discuss.elastic.co/t/delete-field-from-documents/67328/2 "2016-11-28T12:03:03Z")

</div>

In 1.x series, you have to iterate over all docs and update each doc manually or using update API.

I'd suggest to create a 5.0 cluster, use the reindex API with reindex from remote which would read your data from the 1.6 cluster, then use an ingest pipeline in 5.0 which removes the field.

You can also have a look at [https://github.com/yakaz/elasticsearch-action-updatebyquery](https://github.com/yakaz/elasticsearch-action-updatebyquery). Dunno how well it works though.

---

<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 26, 2016, 12:03pm UTC](https://discuss.elastic.co/t/delete-field-from-documents/67328/3 "2016-12-26T12:03:12Z")

</div>

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