# Control deletion of log index while running a curator

**URL:** <https://discuss.elastic.co/t/control-deletion-of-log-index-while-running-a-curator/178412>\
**Category:** Kibana\
**Created:** [April 25, 2019, 9:33am UTC](https://discuss.elastic.co/t/control-deletion-of-log-index-while-running-a-curator/178412 "2019-04-25T09:33:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Syed\_Irfan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/syed_irfan/32/45001_2.png) [@Syed\_Irfan](https://discuss.elastic.co/u/Syed_Irfan)\
**Post date:** [April 25, 2019, 9:33am UTC](https://discuss.elastic.co/t/control-deletion-of-log-index-while-running-a-curator/178412/1 "2019-04-25T09:33:18Z")

</div>

We are in a situation where we are running a curator to purge logs on a certain interval. At the same time as part of compliance process we need to disable deletion or any indexes by any user by curl delete.

How do we control the deletion of indexes by any users?

---

<div class="post-metadata">

**Author:** ![Larry\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_gregory/32/34969_2.png) [@Larry\_Gregory](https://discuss.elastic.co/u/Larry_Gregory)\
**Post date:** [April 25, 2019, 12:01pm UTC](https://discuss.elastic.co/t/control-deletion-of-log-index-while-running-a-curator/178412/2 "2019-04-25T12:01:09Z")

</div>

Hey @Syed_Irfan,

You can control who has `delete` access to specific indices (or patterns of indices) by configuring [index privileges](https://www.elastic.co/guide/en/x-pack/current/security-privileges.html#privileges-list-indices) on your user roles. It sounds like you want to make sure that users don't have the `delete` index privilege.

If they need `delete` access until this curation stage, then you may have to rename these indices so that they match a pattern that you deny delete on.

---

<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:** [May 23, 2019, 12:01pm UTC](https://discuss.elastic.co/t/control-deletion-of-log-index-while-running-a-curator/178412/3 "2019-05-23T12:01:15Z")

</div>

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