# How delete old index mapping or old template on Kibana's dev tool

**URL:** <https://discuss.elastic.co/t/how-delete-old-index-mapping-or-old-template-on-kibanas-dev-tool/106383>\
**Category:** Kibana\
**Created:** [November 4, 2017, 4:38pm UTC](https://discuss.elastic.co/t/how-delete-old-index-mapping-or-old-template-on-kibanas-dev-tool/106383 "2017-11-04T16:38:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![citanionarrei](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@citanionarrei](https://discuss.elastic.co/u/citanionarrei)\
**Post date:** [November 4, 2017, 4:38pm UTC](https://discuss.elastic.co/t/how-delete-old-index-mapping-or-old-template-on-kibanas-dev-tool/106383/1 "2017-11-04T16:38:31Z")

</div>

hi friends

I would like to know if there is a code to clean up the kibana dev tool...  
In these days I created many templates, many mapping and indexes  
I know there are commands

DELETE / my\_index  
DELETE / all  
DELETE /my\_template

but if i want to reset all configuration?

(i ask this because when i create a new index (with name egual to old name) i see the old mapping.  
for example in the photo i see old ge\_poit mapping for my new index)  
 ![photo_2017-11-04_17-31-35](https://us1.discourse-cdn.com/elastic/original/3X/0/2/0284aea5f755efe6cde2b8b7c1a2e334bc1d2811.jpg)

And if i use GET \_template i see this

 ![Screenshot (28)](https://us1.discourse-cdn.com/elastic/original/3X/7/9/79ad69d5e74d5a2b55bff07777a6ed6f2700efe6.png)

there are many lines  
how i can delete it?

---

<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:** [November 4, 2017, 8:50pm UTC](https://discuss.elastic.co/t/how-delete-old-index-mapping-or-old-template-on-kibanas-dev-tool/106383/2 "2017-11-04T20:50:45Z")

</div>

DELETE \_template/\* should do it.

You probably want to take a backup of some sort though.

---

<div class="post-metadata">

**Author:** ![citanionarrei](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@citanionarrei](https://discuss.elastic.co/u/citanionarrei)\
**Post date:** [November 4, 2017, 9:17pm UTC](https://discuss.elastic.co/t/how-delete-old-index-mapping-or-old-template-on-kibanas-dev-tool/106383/3 "2017-11-04T21:17:04Z")

</div>

Hi  
What do the "Delete \_template/\* " do?  
Delete all template?  
Can i make it without problem?  
Does it work to delete old fields mapping?  
I dont understand why when i delete the template, the pattern and the associated indexs and i create new index and new patter with an egual name as previous, i see ok kibana old mapping fields

---

<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:** [November 4, 2017, 9:55pm UTC](https://discuss.elastic.co/t/how-delete-old-index-mapping-or-old-template-on-kibanas-dev-tool/106383/4 "2017-11-04T21:55:04Z")

</div>

> [@citanionarrei](#):
>
> Delete all template?

Yes.

> [@citanionarrei](#):
>
> Does it work to delete old fields mapping?

No, just the template for any future indices.

> [@citanionarrei](#):
>
> I dont understand why when i delete the template, the pattern and the associated indexs and i create new index and new patter with an egual name as previous, i see ok kibana old mapping fields

There must be another template that matches. Are you sure you are deleting everything? If so what commands are you running.

---

<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 2, 2017, 9:55pm UTC](https://discuss.elastic.co/t/how-delete-old-index-mapping-or-old-template-on-kibanas-dev-tool/106383/5 "2017-12-02T21:55:05Z")

</div>

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