# Index delete error with ILM

**URL:** <https://discuss.elastic.co/t/index-delete-error-with-ilm/295462>\
**Category:** Kibana\
**Tags:** elastic-stack-security, ilm-index-lifecycle-management\
**Created:** [January 26, 2022, 2:36pm UTC](https://discuss.elastic.co/t/index-delete-error-with-ilm/295462 "2022-01-26T14:36:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ASRLO](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@ASRLO](https://discuss.elastic.co/u/ASRLO)\
**Post date:** [January 26, 2022, 2:36pm UTC](https://discuss.elastic.co/t/index-delete-error-with-ilm/295462/1 "2022-01-26T14:36:42Z")

</div>

Hello everyone,

I have a problem with indexes.  
Indeed, it no longer deletes itself automatically as expected with my Index Policy management.

When I look I get this error message

> "**Index lifecycle error : security\_exception: action [indices:admin/settings/update] is unauthorized for user [XXXXX]**"

This user is a member of my domain and is not an application-specific local account.  
Some indexes have the same Index Policy management but delete themselves automatically without problem.

What to do to solve this problem? thank you for your answer

---

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [January 26, 2022, 6:54pm UTC](https://discuss.elastic.co/t/index-delete-error-with-ilm/295462/2 "2022-01-26T18:54:04Z")

</div>

ILM executes as the user that put the policy in place. In this case, it appears that the user who created/updated the policy does not have the permissions to update settings for the index.

To fix this, you'll need to update the policy with a user that has the correct permissions.

---

<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 23, 2022, 6:54pm UTC](https://discuss.elastic.co/t/index-delete-error-with-ilm/295462/3 "2022-02-23T18:54:31Z")

</div>

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