# Why can't the mapping field be deleted

**URL:** https://discuss.elastic.co/t/why-cant-the-mapping-field-be-deleted/243685
**Category:** Elasticsearch
**Created:** [August 4, 2020, 9:52am UTC](https://discuss.elastic.co/t/why-cant-the-mapping-field-be-deleted/243685 "2020-08-04T09:52:44Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![RunAsOnehhb](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@RunAsOnehhb](https://discuss.elastic.co/u/RunAsOnehhb)
#### Post date: [August 4, 2020, 9:52am UTC](https://discuss.elastic.co/t/why-cant-the-mapping-field-be-deleted/243685/1 "2020-08-04T09:52:44Z")

</div>

Why can't the mapping field be deleted？

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [August 4, 2020, 10:14am UTC](https://discuss.elastic.co/t/why-cant-the-mapping-field-be-deleted/243685/2 "2020-08-04T10:14:52Z")

</div>

Elasticsearch allows fields to be added and some mappings to be changed but deleting fields from a mapping is not allowed. This restriction has as far as I know always been in place, so you will need to reindex to remove the field from the mapping.

---

<div class="post-metadata">

### Author: ![RunAsOnehhb](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@RunAsOnehhb](https://discuss.elastic.co/u/RunAsOnehhb)
#### Post date: [August 5, 2020, 2:19am UTC](https://discuss.elastic.co/t/why-cant-the-mapping-field-be-deleted/243685/3 "2020-08-05T02:19:56Z")

</div>

If I reindex, is the index after reindex consistent with the original one?

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [August 5, 2020, 7:54am UTC](https://discuss.elastic.co/t/why-cant-the-mapping-field-be-deleted/243685/4 "2020-08-05T07:54:25Z")

</div>

Reindex is based on a snapshot of the data when the reindex operation starts so if you continue to index or update the source index while you reindex those documents will not be covered.

---

<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: [September 2, 2020, 7:54am UTC](https://discuss.elastic.co/t/why-cant-the-mapping-field-be-deleted/243685/5 "2020-09-02T07:54:35Z")

</div>

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