# Disable deletion of a specific index

**URL:** <https://discuss.elastic.co/t/disable-deletion-of-a-specific-index/58316>\
**Category:** Elasticsearch\
**Created:** [August 18, 2016, 6:04am UTC](https://discuss.elastic.co/t/disable-deletion-of-a-specific-index/58316 "2016-08-18T06:04:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sruthi](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@sruthi](https://discuss.elastic.co/u/sruthi)\
**Post date:** [August 18, 2016, 6:04am UTC](https://discuss.elastic.co/t/disable-deletion-of-a-specific-index/58316/1 "2016-08-18T06:04:06Z")

</div>

In elasticsearch is there any way to disable deletion of a specific index? Setting the property action.disable\_delete\_all\_indices to true is for disabling deletion of all indices using \* or \_all. If we are providing the specific name, that index will get deleted. So is there any setting that will disable this?

---

<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:** [August 18, 2016, 6:10am UTC](https://discuss.elastic.co/t/disable-deletion-of-a-specific-index/58316/2 "2016-08-18T06:10:27Z")

</div>

You need access control (Shield) to properly prevent this.  
Although you can try setting an index to read-only.

---

<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:** [July 5, 2017, 10:27pm UTC](https://discuss.elastic.co/t/disable-deletion-of-a-specific-index/58316/3 "2017-07-05T22:27:03Z")

</div>


