# Cannot DELETE Index with Superuser

**URL:** <https://discuss.elastic.co/t/cannot-delete-index-with-superuser/303249>\
**Category:** Elasticsearch\
**Tags:** ilm-index-lifecycle-management\
**Created:** [April 26, 2022, 9:36am UTC](https://discuss.elastic.co/t/cannot-delete-index-with-superuser/303249 "2022-04-26T09:36:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GinkoLucas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ginkolucas/32/107055_2.png) [@GinkoLucas](https://discuss.elastic.co/u/GinkoLucas)\
**Post date:** [April 26, 2022, 9:36am UTC](https://discuss.elastic.co/t/cannot-delete-index-with-superuser/303249/1 "2022-04-26T09:36:08Z")

</div>

Hello,

I have a problem on my Elasticsearch, i cannot delete an index with a superuser :

I have some .reporting index, and i want to apply an ILM to this index because i dont need the old .reportng index.

After changing the ILM specifying the deletion of indexes after X days, the old indexes entered the deletion stage. But, when ILM try to DELETE the olds index, this error occured :

`security_exception: action [indices:admin/delete] is unauthorized for user [admin] with roles [superuser] on indices [.reporting-2022-02-13], this action is granted by the index privileges [delete_index,manage,all]`

I dont understand, because i use a superuser. And i cannot DELETE these index manually,.

But i can DELETE all others index 🤨  
It doesnt work with a cloud user too.

is it related to this index precisely ?

---

<div class="post-metadata">

**Author:** ![ibra\_013](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ibra_013/32/104827_2.png) [@ibra\_013](https://discuss.elastic.co/u/ibra_013)\
**Post date:** [May 5, 2022, 5:43pm UTC](https://discuss.elastic.co/t/cannot-delete-index-with-superuser/303249/2 "2022-05-05T17:43:15Z")

</div>

Hi,

From the [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/built-in-roles.html) it make sense ,

```auto
superuser

    Grants full access to cluster management and data indices. This role also grants direct read-only access to restricted indices like .security. A user with the superuser role can impersonate any other user in the system.

    On Elastic Cloud, all standard users, including those with the superuser role are restricted from performing operator-only actions.

```

---

<div class="post-metadata">

**Author:** ![GinkoLucas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ginkolucas/32/107055_2.png) [@GinkoLucas](https://discuss.elastic.co/u/GinkoLucas)\
**Post date:** [May 10, 2022, 2:08pm UTC](https://discuss.elastic.co/t/cannot-delete-index-with-superuser/303249/3 "2022-05-10T14:08:22Z")

</div>

I got the solution. Superuser role is not a superuser anymore... 😆  
Go see this : [[Reporting] Implement allowing administrators to manage any report or reporting index · Issue #127881 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/127881) Here is the solution !  
U just have to create a new role and add it to your user. Use dev tool for this.

---

<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:** [June 7, 2022, 2:09pm UTC](https://discuss.elastic.co/t/cannot-delete-index-with-superuser/303249/4 "2022-06-07T14:09:05Z")

</div>

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