# How to delete a type from an index with all data

**URL:** <https://discuss.elastic.co/t/how-to-delete-a-type-from-an-index-with-all-data/107377>\
**Category:** Elasticsearch\
**Created:** [November 13, 2017, 11:41am UTC](https://discuss.elastic.co/t/how-to-delete-a-type-from-an-index-with-all-data/107377 "2017-11-13T11:41:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aneesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aneesh/32/37819_2.png) [@aneesh](https://discuss.elastic.co/u/aneesh)\
**Post date:** [November 13, 2017, 11:41am UTC](https://discuss.elastic.co/t/how-to-delete-a-type-from-an-index-with-all-data/107377/1 "2017-11-13T11:41:48Z")

</div>

How to delete a type from an index with all data in C#

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 13, 2017, 1:56pm UTC](https://discuss.elastic.co/t/how-to-delete-a-type-from-an-index-with-all-data/107377/2 "2017-11-13T13:56:25Z")

</div>

It’s often better to reindex data that you don’t want to remove.  
Removing a type does not remove its mapping.

Note that types are being removed so you should not use them anymore.

---

<div class="post-metadata">

**Author:** ![aneesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aneesh/32/37819_2.png) [@aneesh](https://discuss.elastic.co/u/aneesh)\
**Post date:** [November 14, 2017, 2:59am UTC](https://discuss.elastic.co/t/how-to-delete-a-type-from-an-index-with-all-data/107377/3 "2017-11-14T02:59:54Z")

</div>

Thanks David Pilato

---

<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 12, 2017, 3:00am UTC](https://discuss.elastic.co/t/how-to-delete-a-type-from-an-index-with-all-data/107377/4 "2017-12-12T03:00:10Z")

</div>

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