# Can't delete index template

**URL:** <https://discuss.elastic.co/t/cant-delete-index-template/194671>\
**Category:** Elasticsearch\
**Created:** [August 9, 2019, 7:42pm UTC](https://discuss.elastic.co/t/cant-delete-index-template/194671 "2019-08-09T19:42:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwalls](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jwalls](https://discuss.elastic.co/u/jwalls)\
**Post date:** [August 9, 2019, 7:42pm UTC](https://discuss.elastic.co/t/cant-delete-index-template/194671/1 "2019-08-09T19:42:54Z")

</div>

Hello,

I am having issues with "final mapping would have more than one type" errors, so I checked to see if logstash has multiple templates left over. I have one, `logstash-index-template` that when trying `curl -X DELETE "{ elasticsearch_ip }:9200/_template/logstash-index-template"` gives the `{"acknowledged":true}` response, but if I immediately try a HEAD curl, it shows the template still exists, and a GET curl shows the template just as it was before.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [August 12, 2019, 8:11am UTC](https://discuss.elastic.co/t/cant-delete-index-template/194671/2 "2019-08-12T08:11:08Z")

</div>

Elasticsearch does not recreate an index . template by itself, so I suppose, that there is another component doing this pretty quick after deletion. Judging by the name of this template, I suppose it is done by the x-pack plugin code.

What elasticsearch version are you running on? I suppose this is 6.x. You are not running a mixed cluster I suppose?

That index template however only set's something for the `.logstash` index, which no other system should write into.

---

<div class="post-metadata">

**Author:** ![jwalls](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jwalls](https://discuss.elastic.co/u/jwalls)\
**Post date:** [August 12, 2019, 5:07pm UTC](https://discuss.elastic.co/t/cant-delete-index-template/194671/3 "2019-08-12T17:07:02Z")

</div>

Yes it's ES 6.5. I haven't personally touched X-pack, and there are no settings for X-Pack set in the `elasticsearch.yml`

---

<div class="post-metadata">

**Author:** ![jwalls](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jwalls](https://discuss.elastic.co/u/jwalls)\
**Post date:** [August 14, 2019, 8:45pm UTC](https://discuss.elastic.co/t/cant-delete-index-template/194671/4 "2019-08-14T20:45:12Z")

</div>

I have stopped X-Pack manually and tried to delete the index again, but the issue persists.

---

<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:** [September 11, 2019, 8:45pm UTC](https://discuss.elastic.co/t/cant-delete-index-template/194671/5 "2019-09-11T20:45:30Z")

</div>

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