# How to get rid of \_type field

**URL:** <https://discuss.elastic.co/t/how-to-get-rid-of-type-field/246230>\
**Category:** Elasticsearch\
**Created:** [August 25, 2020, 6:55am UTC](https://discuss.elastic.co/t/how-to-get-rid-of-type-field/246230 "2020-08-25T06:55:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![defalt](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/defalt/32/71379_2.png) [@defalt](https://discuss.elastic.co/u/defalt)\
**Post date:** [August 25, 2020, 6:55am UTC](https://discuss.elastic.co/t/how-to-get-rid-of-type-field/246230/1 "2020-08-25T06:55:52Z")

</div>

Hi,  
I have old indices that still contain the \_type field. I want to get rid of this so that I am prepared for 8.X whenever its coming. How can I remove this field from all my indices? What I tried:

- Reindex, Did not help
- Reindex with pipeline (see below), Did not help

```auto
"test_pipeline": {
  "description": "Removes the 'type' field",
  "processors": [
     {
     "remove": {
        "field": "_type"
     }
     }
  ]
}

```

How can I remove this field?

Thanks,  
_defalt_

---

<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 23, 2020, 6:32am UTC](https://discuss.elastic.co/t/how-to-get-rid-of-type-field/246230/3 "2020-09-23T06:32:40Z")

</div>

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