# Mappings definitions are not deleting even after related Indices deletion

**URL:** <https://discuss.elastic.co/t/mappings-definitions-are-not-deleting-even-after-related-indices-deletion/6049>\
**Category:** Elasticsearch\
**Created:** [December 2, 2011, 8:52am UTC](https://discuss.elastic.co/t/mappings-definitions-are-not-deleting-even-after-related-indices-deletion/6049 "2011-12-02T08:52:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arien](https://avatars.discourse-cdn.com/v4/letter/a/e0b2c6/32.png) [@arien](https://discuss.elastic.co/u/arien)\
**Post date:** [December 2, 2011, 8:52am UTC](https://discuss.elastic.co/t/mappings-definitions-are-not-deleting-even-after-related-indices-deletion/6049/1 "2011-12-02T08:52:56Z")

</div>

Hi;

I am facing a problem concerning to complete deletion of mapping and  
mapping definitions.  
When i delete any index,data in its related mappings are getting  
deleted,  
but if I try to reinsert an index and its associated mappings with  
same names before deletion but this time with "different" mapping  
definitions than earlier, it is giving me an error saying it differs  
from Original mapping.

if i do it other way around say first i delete mappings and then  
index,Still error is persistent in the next time inserting with  
similar names.Please clarify why is it happening so or are there any  
instances of mapping definitions still left even after its deletion.  
thanks and regards;  
Ajay

---

<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 4, 2011, 2:05pm UTC](https://discuss.elastic.co/t/mappings-definitions-are-not-deleting-even-after-related-indices-deletion/6049/2 "2011-12-04T14:05:42Z")

</div>

When you delete an index, the mapping associated with that index get  
deleted as well. Maybe you have index templates defined, or mapping in the  
config directory that get applied whenever an index gets created?

On Fri, Dec 2, 2011 at 10:52 AM, arien [ajaypadvi@gmail.com](mailto:ajaypadvi@gmail.com) wrote:

> Hi;
> 
> I am facing a problem concerning to complete deletion of mapping and  
> mapping definitions.  
> When i delete any index,data in its related mappings are getting  
> deleted,  
> but if I try to reinsert an index and its associated mappings with  
> same names before deletion but this time with "different" mapping  
> definitions than earlier, it is giving me an error saying it differs  
> from Original mapping.
> 
> if i do it other way around say first i delete mappings and then  
> index,Still error is persistent in the next time inserting with  
> similar names.Please clarify why is it happening so or are there any  
> instances of mapping definitions still left even after its deletion.  
> thanks and regards;  
> Ajay

---

<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:46am UTC](https://discuss.elastic.co/t/mappings-definitions-are-not-deleting-even-after-related-indices-deletion/6049/3 "2017-07-06T03:46:29Z")

</div>


