# ES 8.0.0 Deletion with index lifecycle policy does nothing

**URL:** https://discuss.elastic.co/t/es-8-0-0-deletion-with-index-lifecycle-policy-does-nothing/258346
**Category:** Elasticsearch
**Tags:** ilm-index-lifecycle-management
**Created:** [December 10, 2020, 11:33pm UTC](https://discuss.elastic.co/t/es-8-0-0-deletion-with-index-lifecycle-policy-does-nothing/258346 "2020-12-10T23:33:12Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![nlavrov](https://avatars.discourse-cdn.com/v4/letter/n/e36b37/32.png) [@nlavrov](https://discuss.elastic.co/u/nlavrov)
#### Post date: [December 10, 2020, 11:33pm UTC](https://discuss.elastic.co/t/es-8-0-0-deletion-with-index-lifecycle-policy-does-nothing/258346/1 "2020-12-10T23:33:12Z")

</div>

I am running an elk stack set up with helm chart running 8.0.0 version. I have a simple delete policy I created in the kibana dashboard that just deletes indices older than 1 minute (this is for testing). I then applied it to an index that is several days old, and waited 10 minutes, and the index has lifecycle "Current phase delete." However, it is still there. Why is the index not being deleted?

---

<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: [December 11, 2020, 1:08am UTC](https://discuss.elastic.co/t/es-8-0-0-deletion-with-index-lifecycle-policy-does-nothing/258346/2 "2020-12-11T01:08:44Z")

</div>

Welcome to our community! 😃

Please share your policy.

---

<div class="post-metadata">

### Author: ![nlavrov](https://avatars.discourse-cdn.com/v4/letter/n/e36b37/32.png) [@nlavrov](https://discuss.elastic.co/u/nlavrov)
#### Post date: [December 11, 2020, 1:15am UTC](https://discuss.elastic.co/t/es-8-0-0-deletion-with-index-lifecycle-policy-does-nothing/258346/3 "2020-12-11T01:15:50Z")

</div>

Hi! This is the policy:

```auto
PUT _ilm/policy/testing
{
  "policy": {
    "phases": {
      "hot": {
        "actions": {
          "set_priority": {
            "priority": 100
          }
        },
        "min_age": "0ms"
      },
      "delete": {
        "min_age": "1m",
        "actions": {}
      }
    }
  }
}

```

And this is the settings of an index I applied the policy to:

```auto
{
  "index.blocks.read_only_allow_delete": "false",
  "index.query.default_field": [
    "*"
  ],
  "index.write.wait_for_active_shards": "1",
  "index.lifecycle.name": "testing",
  "index.routing.allocation.include._tier_preference": "data_content",
  "index.refresh_interval": "10s",
  "index.analysis.analyzer.oap_analyzer.type": "stop",
  "index.priority": "100",
  "index.number_of_replicas": "0"
}

```

---

<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: [December 11, 2020, 1:38am UTC](https://discuss.elastic.co/t/es-8-0-0-deletion-with-index-lifecycle-policy-does-nothing/258346/4 "2020-12-11T01:38:51Z")

</div>

You need to add `delete` to the `actions` section.

---

<div class="post-metadata">

### Author: ![nlavrov](https://avatars.discourse-cdn.com/v4/letter/n/e36b37/32.png) [@nlavrov](https://discuss.elastic.co/u/nlavrov)
#### Post date: [December 11, 2020, 1:44am UTC](https://discuss.elastic.co/t/es-8-0-0-deletion-with-index-lifecycle-policy-does-nothing/258346/5 "2020-12-11T01:44:11Z")

</div>

Thanks for clearing that up! I cannot find where to add this on the UI though. Is it something that is API only?

 ![Screen Shot 2020-12-10 at 5.42.55 PM](https://us1.discourse-cdn.com/elastic/original/3X/1/2/1250dbeb664231e203a0e5321fcccf3cc973eac3.png)

---

<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: [December 14, 2020, 9:12pm UTC](https://discuss.elastic.co/t/es-8-0-0-deletion-with-index-lifecycle-policy-does-nothing/258346/6 "2020-12-14T21:12:26Z")

</div>

It's likely related to [https://github.com/elastic/kibana/issues/84442](https://github.com/elastic/kibana/issues/84442)

---

<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: [January 11, 2021, 9:12pm UTC](https://discuss.elastic.co/t/es-8-0-0-deletion-with-index-lifecycle-policy-does-nothing/258346/7 "2021-01-11T21:12:34Z")

</div>

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