# Delete unnecessary mappings from a given index

**URL:** https://discuss.elastic.co/t/delete-unnecessary-mappings-from-a-given-index/305612
**Category:** Elasticsearch
**Created:** [May 25, 2022, 12:46pm UTC](https://discuss.elastic.co/t/delete-unnecessary-mappings-from-a-given-index/305612 "2022-05-25T12:46:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![nunex\_17](https://avatars.discourse-cdn.com/v4/letter/n/f17d59/32.png) [@nunex\_17](https://discuss.elastic.co/u/nunex_17)
#### Post date: [May 25, 2022, 12:46pm UTC](https://discuss.elastic.co/t/delete-unnecessary-mappings-from-a-given-index/305612/1 "2022-05-25T12:46:31Z")

</div>

Hi,

I have an index template called "suricata-ids" created by default from Filebeat. This index template has many fields that are simply not used by the suricata logs. How can i delete that unnecessary fields? Is it possible? It improves performance?

Thanks you

---

<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: [May 25, 2022, 11:43pm UTC](https://discuss.elastic.co/t/delete-unnecessary-mappings-from-a-given-index/305612/2 "2022-05-25T23:43:33Z")

</div>

It's not worth deleting extra fields for older indices. You should look at customising the index template to remove the fields you don't want for future indices.

---

<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: [June 22, 2022, 11:44pm UTC](https://discuss.elastic.co/t/delete-unnecessary-mappings-from-a-given-index/305612/3 "2022-06-22T23:44:19Z")

</div>

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