# Clearing index pattern fields

**URL:** <https://discuss.elastic.co/t/clearing-index-pattern-fields/290716>\
**Category:** Kibana\
**Created:** [December 2, 2021, 12:53am UTC](https://discuss.elastic.co/t/clearing-index-pattern-fields/290716 "2021-12-02T00:53:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamzahda](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hamzahda/32/97937_2.png) [@hamzahda](https://discuss.elastic.co/u/hamzahda)\
**Post date:** [December 2, 2021, 12:53am UTC](https://discuss.elastic.co/t/clearing-index-pattern-fields/290716/1 "2021-12-02T00:53:36Z")

</div>

I want to clear around 2000 unused fields in a kibana index pattern and I was wondering wich of the following two approaches should I take:

- deleting all of the fields and then only the used fields will be recreated by the index pattern

- going over all the 9000 fields and looking for the unused ones and delete them afterwards

the first approach is a lot more easier however I'm not very sure since I'm new to ELK and thanks for the help

---

<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:** [December 2, 2021, 1:18am UTC](https://discuss.elastic.co/t/clearing-index-pattern-fields/290716/2 "2021-12-02T01:18:53Z")

</div>

Welcome to our community! 😃

If the fields are still in the mapping, in Elasticsearch, then they will still show up in Kibana. If they really are unused then you will need to reindex the data to remove those fields.

---

<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 30, 2021, 1:19am UTC](https://discuss.elastic.co/t/clearing-index-pattern-fields/290716/3 "2021-12-30T01:19:26Z")

</div>

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