# Index setting for blocks.read\_only\_allow\_delete keeps changing

**URL:** <https://discuss.elastic.co/t/index-setting-for-blocks-read-only-allow-delete-keeps-changing/128256>\
**Category:** Elasticsearch\
**Created:** [April 16, 2018, 10:14pm UTC](https://discuss.elastic.co/t/index-setting-for-blocks-read-only-allow-delete-keeps-changing/128256 "2018-04-16T22:14:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![daved](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@daved](https://discuss.elastic.co/u/daved)\
**Post date:** [April 16, 2018, 10:14pm UTC](https://discuss.elastic.co/t/index-setting-for-blocks-read-only-allow-delete-keeps-changing/128256/1 "2018-04-16T22:14:21Z")

</div>

Hi,

I'm trying to delete and re-ingest a large amount of data. I set up a script to do this and things were going fine, deleting an old daily index and re-copying data to a file input folder until everything stopped. I checked the logstash-plain.log and saw a familiar message "FORBIDDEN/12/index read-only / allow delete (api)".

But I thought I had already dealt with this, I've seen this message before and followed steps on this forum ([FORBIDDEN/12/index read-only / allow delete (api)]](https://discuss.elastic.co/t/forbidden-12-index-read-only-allow-delete-api/110282)) to change all of them to `blocks.read_only_allow_delete: false`

I also created an `all` template with a order of 100000, `index_pattern: *` to set everything with this setting.

According to this blog [https://benjaminknofe.com/blog/2017/12/23/forbidden-12-index-read-only-allow-delete-api-read-only-elasticsearch-indices/](https://benjaminknofe.com/blog/2017/12/23/forbidden-12-index-read-only-allow-delete-api-read-only-elasticsearch-indices/) this happens because disk space fills up but path.data is not full nor are either of my file input locations.

Any ideas what's going on and how I can stop this?

Thanks!

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [April 17, 2018, 2:15am UTC](https://discuss.elastic.co/t/index-setting-for-blocks-read-only-allow-delete-keeps-changing/128256/2 "2018-04-17T02:15:20Z")

</div>

It doesn't happen when you run out of disk space, it happens by default when you have less than 5% of disk space available. That's what I think is happening here.

---

<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 15, 2018, 2:15am UTC](https://discuss.elastic.co/t/index-setting-for-blocks-read-only-allow-delete-keeps-changing/128256/3 "2018-05-15T02:15:42Z")

</div>

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