# Old Index is not deleted as per ILM

**URL:** https://discuss.elastic.co/t/old-index-is-not-deleted-as-per-ilm/344036
**Category:** Elasticsearch
**Tags:** ilm-index-lifecycle-management
**Created:** [September 28, 2023, 6:59am UTC](https://discuss.elastic.co/t/old-index-is-not-deleted-as-per-ilm/344036 "2023-09-28T06:59:57Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Rakhshunda\_Noorein\_J](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rakhshunda_noorein_j/32/99407_2.png) [@Rakhshunda\_Noorein\_J](https://discuss.elastic.co/u/Rakhshunda_Noorein_J)
#### Post date: [September 28, 2023, 6:59am UTC](https://discuss.elastic.co/t/old-index-is-not-deleted-as-per-ilm/344036/1 "2023-09-28T06:59:57Z")

</div>

Hello,

I have created an ILM for my .monitoring-es-7-\* indices

```auto
PUT _ilm/policy/Elasticsearch_monitoring_test_policy
{
  "policy": {
    "phases": {
      "hot": {
        "min_age": "0ms",
        "actions": {
          "set_priority": {
            "priority": 100
          }
        }
      },
      "delete": {
        "min_age": "3d",
        "actions": {
          "delete": {
            "delete_searchable_snapshot": true
          }
        }
      }
    }
  }
}

```

I have not enables Rollover on ILM bcoz no alias is used. Just the hot phase and delete phase.

Then I attached the ILM to system legacy template .monitoring-es template. So when a monitoring index is generated ILM is attached to it.  
below sharing the screenshot of my monitoring index.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/6/b62f64682ec75fd7a649e89f79a736095f75c5e0.png)

this index was created on 25-09-23 but after 3 days that is today this index should be deleted as per ILM. But it is not deleted.

---

<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: [October 26, 2023, 7:00am UTC](https://discuss.elastic.co/t/old-index-is-not-deleted-as-per-ilm/344036/2 "2023-10-26T07:00:43Z")

</div>

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