# Index Template Data Stream

**URL:** <https://discuss.elastic.co/t/index-template-data-stream/255086>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [November 11, 2020, 2:37pm UTC](https://discuss.elastic.co/t/index-template-data-stream/255086 "2020-11-11T14:37:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Craig2188](https://avatars.discourse-cdn.com/v4/letter/c/858c86/32.png) [@Craig2188](https://discuss.elastic.co/u/Craig2188)\
**Post date:** [November 11, 2020, 2:37pm UTC](https://discuss.elastic.co/t/index-template-data-stream/255086/1 "2020-11-11T14:37:21Z")

</div>

Hi  
I have an index template that is assigned to a couple of index patterns, however, appears to of accidentally been set up to use data streams. How can I convert this back to use indices as it is failing to process logging now until this has been resolved. I have tried to remove the index template, however, that fails due to the data streams having active streams.  
I have tried to edit the template by unchecking the data stream option and saving this, left it for about 1 hour and it is still saying it is saving

---

<div class="post-metadata">

**Author:** ![danhermann](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danhermann/32/33024_2.png) [@danhermann](https://discuss.elastic.co/u/danhermann)\
**Post date:** [November 23, 2020, 5:33pm UTC](https://discuss.elastic.co/t/index-template-data-stream/255086/2 "2020-11-23T17:33:55Z")

</div>

Hi Craig, as you noted, templates cannot be deleted if they are being used by any data streams. If you want to edit the template to remove the data stream option, first delete any data streams that it refers to.

Dan

---

<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 21, 2020, 5:34pm UTC](https://discuss.elastic.co/t/index-template-data-stream/255086/3 "2020-12-21T17:34:19Z")

</div>

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