# How to delete the Mapping in elastic search

**URL:** <https://discuss.elastic.co/t/how-to-delete-the-mapping-in-elastic-search/6184>\
**Category:** Elasticsearch\
**Created:** [December 17, 2011, 7:08am UTC](https://discuss.elastic.co/t/how-to-delete-the-mapping-in-elastic-search/6184 "2011-12-17T07:08:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![narinder\_izap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/narinder_izap/32/803_2.png) [@narinder\_izap](https://discuss.elastic.co/u/narinder_izap)\
**Post date:** [December 17, 2011, 7:08am UTC](https://discuss.elastic.co/t/how-to-delete-the-mapping-in-elastic-search/6184/1 "2011-12-17T07:08:41Z")

</div>

Hi,  
I am facing a problem, I have some type for which default mapping was  
added. but later, i found the need to remap that type, so i deleted the  
whole type, but in the index, its mapping is still present. Please give me  
some way to delete the mappin.

Thanks

---

<div class="post-metadata">

**Author:** ![Sam\_3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sam_3/32/3035_2.png) [@Sam\_3](https://discuss.elastic.co/u/Sam_3)\
**Post date:** [December 19, 2011, 2:16pm UTC](https://discuss.elastic.co/t/how-to-delete-the-mapping-in-elastic-search/6184/2 "2011-12-19T14:16:39Z")

</div>

Try something like:  
curl -XDELETE [http://localhost:9200/INDEX/TYPE/\_mapping](http://localhost:9200/INDEX/TYPE/_mapping)

On Dec 17, 2:08 am, Narinder Kaur [narinder.k...@izap.in](mailto:narinder.k...@izap.in) wrote:

> Hi,  
> I am facing a problem, I have some type for which default mapping was  
> added. but later, i found the need to remap that type, so i deleted the  
> whole type, but in the index, its mapping is still present. Please give me  
> some way to delete the mappin.
> 
> Thanks

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [December 20, 2011, 3:09pm UTC](https://discuss.elastic.co/t/how-to-delete-the-mapping-in-elastic-search/6184/3 "2011-12-20T15:09:07Z")

</div>

Note that this will delete also the actual data for the type.

On Mon, Dec 19, 2011 at 4:16 PM, Sam [sam.brauer@gmail.com](mailto:sam.brauer@gmail.com) wrote:

> Try something like:  
> curl -XDELETE [http://localhost:9200/INDEX/TYPE/\_mapping](http://localhost:9200/INDEX/TYPE/_mapping)
> 
> On Dec 17, 2:08 am, Narinder Kaur [narinder.k...@izap.in](mailto:narinder.k...@izap.in) wrote:
> 
> > Hi,  
> > I am facing a problem, I have some type for which default mapping was  
> > added. but later, i found the need to remap that type, so i deleted the  
> > whole type, but in the index, its mapping is still present. Please give  
> > me  
> > some way to delete the mappin.
> > 
> > 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, 2017, 3:44am UTC](https://discuss.elastic.co/t/how-to-delete-the-mapping-in-elastic-search/6184/4 "2017-07-06T03:44:53Z")

</div>


