# Index deleted by lifecycle after snapshot restore

**URL:** https://discuss.elastic.co/t/index-deleted-by-lifecycle-after-snapshot-restore/351569
**Category:** Elasticsearch
**Tags:** snapshot-and-restore
**Created:** [January 22, 2024, 6:27pm UTC](https://discuss.elastic.co/t/index-deleted-by-lifecycle-after-snapshot-restore/351569 "2024-01-22T18:27:32Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![lee.clemens](https://avatars.discourse-cdn.com/v4/letter/l/85f322/32.png) [@lee.clemens](https://discuss.elastic.co/u/lee.clemens)
#### Post date: [January 22, 2024, 6:27pm UTC](https://discuss.elastic.co/t/index-deleted-by-lifecycle-after-snapshot-restore/351569/1 "2024-01-22T18:27:32Z")

</div>

Hello,

I recently struggled with waking up to see a restore completed, but the restored index was missing. Is there a way to remove the lifecycle policy after the restore (I resorted to a script to do so after waiting for the restore). Or perhaps my snapshots should not still have the lifecycle in the first place?

Any advice on a cleaner way to handle this would be greatly appreciated!

Thanks,  
Lee

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [January 22, 2024, 6:46pm UTC](https://discuss.elastic.co/t/index-deleted-by-lifecycle-after-snapshot-restore/351569/2 "2024-01-22T18:46:26Z")

</div>

When restoring, in the Kibana UI you have the option to modify the index settings.

just add this:

```auto
{
  "index.lifecycle.name": null
}

```

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/b/db4325ab69150bc9e158c96c87e7680bd1f5c178.png)

---

<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: [February 19, 2024, 6:47pm UTC](https://discuss.elastic.co/t/index-deleted-by-lifecycle-after-snapshot-restore/351569/3 "2024-02-19T18:47:04Z")

</div>

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