# Apply an ILM policy to all indices in cluster

**URL:** <https://discuss.elastic.co/t/apply-an-ilm-policy-to-all-indices-in-cluster/275553>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [June 10, 2021, 10:10am UTC](https://discuss.elastic.co/t/apply-an-ilm-policy-to-all-indices-in-cluster/275553 "2021-06-10T10:10:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![elk11](https://avatars.discourse-cdn.com/v4/letter/e/45deac/32.png) [@elk11](https://discuss.elastic.co/u/elk11)\
**Post date:** [June 10, 2021, 10:10am UTC](https://discuss.elastic.co/t/apply-an-ilm-policy-to-all-indices-in-cluster/275553/1 "2021-06-10T10:10:57Z")

</div>

Elasticsearch and Kibana version: 7.3.1

We host and provide elasticsearch cluster to other teams within our org. We want to delete indices in that cluster after certain days. For that matter we created a policy which takes indices to different phases (without rollover) and deletes after 30 days.

How to apply this policy to all non-internal indices?

---

<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:** [June 16, 2021, 12:35am UTC](https://discuss.elastic.co/t/apply-an-ilm-policy-to-all-indices-in-cluster/275553/2 "2021-06-16T00:35:51Z")

</div>

Does [Manage existing indices | Elasticsearch Guide [7.13] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.13/ilm-with-existing-indices.html) help?

---

<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 14, 2021, 12:36am UTC](https://discuss.elastic.co/t/apply-an-ilm-policy-to-all-indices-in-cluster/275553/3 "2021-07-14T00:36:31Z")

</div>

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