# Is it possible to delete fields from Elasticsearch?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-delete-fields-from-elasticsearch/134237>\
**Category:** Elasticsearch\
**Created:** [June 1, 2018, 2:25pm UTC](https://discuss.elastic.co/t/is-it-possible-to-delete-fields-from-elasticsearch/134237 "2018-06-01T14:25:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![amruth](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@amruth](https://discuss.elastic.co/u/amruth)\
**Post date:** [June 1, 2018, 2:25pm UTC](https://discuss.elastic.co/t/is-it-possible-to-delete-fields-from-elasticsearch/134237/1 "2018-06-01T14:25:21Z")

</div>

Hi,

I am ingesting data to elasticsearch using logstash and my indexes are created every month(sample-%{+YYYY.MM}).

sample-2018.04 and sample-2018.05 indexes have unwanted fields(nearly 8000 fields). Now, I've corrected my mistake in sample-2018.06(only 120 fields). But when I search in Index Patterns in Kibana, it still shows 8000 fields. So can someone please say,

- If there is a way to delete fields in elasticsearch?

- If I delete the old indexes, then I would only see 120 fields?

Having 8000 fields would definitely effect elasticsearch index performance which I am already experiencing. Please shed some light on this issue.

Thanks

---

<div class="post-metadata">

**Author:** ![tdasch](https://avatars.discourse-cdn.com/v4/letter/t/58f4c7/32.png) [@tdasch](https://discuss.elastic.co/u/tdasch)\
**Post date:** [June 1, 2018, 3:12pm UTC](https://discuss.elastic.co/t/is-it-possible-to-delete-fields-from-elasticsearch/134237/2 "2018-06-01T15:12:55Z")

</div>

Amruth,

How did you resolve the problem of getting rid of the unwanted fields?

---

<div class="post-metadata">

**Author:** ![amruth](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@amruth](https://discuss.elastic.co/u/amruth)\
**Post date:** [June 1, 2018, 5:28pm UTC](https://discuss.elastic.co/t/is-it-possible-to-delete-fields-from-elasticsearch/134237/3 "2018-06-01T17:28:50Z")

</div>

So, I am using kv filter without whitelisting the fields and the events somehow have payload in it which got splitted into dynamic key-value pairs. Now, I've included fields to be included as part of kv filter which would only give required fields.

---

<div class="post-metadata">

**Author:** ![amruth](https://avatars.discourse-cdn.com/v4/letter/a/43a26b/32.png) [@amruth](https://discuss.elastic.co/u/amruth)\
**Post date:** [June 8, 2018, 2:04pm UTC](https://discuss.elastic.co/t/is-it-possible-to-delete-fields-from-elasticsearch/134237/4 "2018-06-08T14:04:07Z")

</div>

Any help here is highly appreciated 🙂 Thanks

---

<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:** [July 6, 2018, 2:04pm UTC](https://discuss.elastic.co/t/is-it-possible-to-delete-fields-from-elasticsearch/134237/5 "2018-07-06T14:04:16Z")

</div>

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