# Delete mapping and type in a index : es 2.0

**URL:** <https://discuss.elastic.co/t/delete-mapping-and-type-in-a-index-es-2-0/37806>\
**Category:** Elasticsearch\
**Created:** [December 22, 2015, 11:09pm UTC](https://discuss.elastic.co/t/delete-mapping-and-type-in-a-index-es-2-0/37806 "2015-12-22T23:09:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vgupta](https://avatars.discourse-cdn.com/v4/letter/v/67e7ee/32.png) [@vgupta](https://discuss.elastic.co/u/vgupta)\
**Post date:** [December 22, 2015, 11:09pm UTC](https://discuss.elastic.co/t/delete-mapping-and-type-in-a-index-es-2-0/37806/1 "2015-12-22T23:09:44Z")

</div>

Hi

Whats the best way to delete all the documents in type and its mapping from an index?  
I have download the delete by query plugin,  
Thanks  
Vinay

---

<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 22, 2015, 11:39pm UTC](https://discuss.elastic.co/t/delete-mapping-and-type-in-a-index-es-2-0/37806/2 "2015-12-22T23:39:27Z")

</div>

The DBQ plugin is the best of the worst options.  
You are better off putting different types in different indices though.

---

<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 5, 2017, 11:29pm UTC](https://discuss.elastic.co/t/delete-mapping-and-type-in-a-index-es-2-0/37806/3 "2017-07-05T23:29:11Z")

</div>


