# ILM policy keeps reverting - disabling delete phase

**URL:** https://discuss.elastic.co/t/ilm-policy-keeps-reverting-disabling-delete-phase/279317
**Category:** Elasticsearch
**Tags:** ilm-index-lifecycle-management
**Created:** [July 21, 2021, 9:01pm UTC](https://discuss.elastic.co/t/ilm-policy-keeps-reverting-disabling-delete-phase/279317 "2021-07-21T21:01:38Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mw77](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@mw77](https://discuss.elastic.co/u/mw77)
#### Post date: [July 21, 2021, 9:01pm UTC](https://discuss.elastic.co/t/ilm-policy-keeps-reverting-disabling-delete-phase/279317/1 "2021-07-21T21:01:38Z")

</div>

Hi Guys,  
I have create a ILM policy which has around 90 indices attached to it.  
from the UI I have created a policy and below is the request when I click on show request.  
I am enabling the delete phase after rollover from hot phase, enabled warm phase for 7 days and then finally enabling delete phase for min 7 days.  
All the task is performed from the UI.  
problem : the policy stays for a day and when I see the next day warm phase and delete phase are disabled. I keep enabling it from the UI, but in a day or two it keeps reverting the policy back and disables the warm and delete phase. any help is appreciated.

```auto
PUT _ilm/policy/bananatree
{
  "policy": {
    "phases": {
      "hot": {
        "min_age": "0ms",
        "actions": {
          "rollover": {
            "max_age": "30d",
            "max_size": "150gb"
          },
          "set_priority": {
            "priority": 100
          }
        }
      },
      "warm": {
        "actions": {}
      },
      "delete": {
        "min_age": "7d",
        "actions": {
          "delete": {}
        }
      }
    }
  }
}

```

---

<div class="post-metadata">

### Author: ![mw77](https://avatars.discourse-cdn.com/v4/letter/m/8baadc/32.png) [@mw77](https://discuss.elastic.co/u/mw77)
#### Post date: [July 22, 2021, 2:33pm UTC](https://discuss.elastic.co/t/ilm-policy-keeps-reverting-disabling-delete-phase/279317/2 "2021-07-22T14:33:34Z")

</div>

tried with PUT API. still doesnt seem to do any good.

---

<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: [August 19, 2021, 2:34pm UTC](https://discuss.elastic.co/t/ilm-policy-keeps-reverting-disabling-delete-phase/279317/3 "2021-08-19T14:34:24Z")

</div>

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