# Issue removing index with index.blocks.read\_only set to true

**URL:** <https://discuss.elastic.co/t/issue-removing-index-with-index-blocks-read-only-set-to-true/21899>\
**Category:** Elasticsearch\
**Created:** [January 29, 2015, 12:58pm UTC](https://discuss.elastic.co/t/issue-removing-index-with-index-blocks-read-only-set-to-true/21899 "2015-01-29T12:58:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ElasticSearch\_Users\_](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@ElasticSearch\_Users\_](https://discuss.elastic.co/u/ElasticSearch_Users_)\
**Post date:** [January 29, 2015, 12:58pm UTC](https://discuss.elastic.co/t/issue-removing-index-with-index-blocks-read-only-set-to-true/21899/1 "2015-01-29T12:58:18Z")

</div>

Hi,

I was trying the settings to block data writes and also metadat writes to  
an index applying this:

curl -XPUT '[http://testserver:9200/test\_index/\_settings](http://testserver:9200/test_index/_settings)' -d '{  
"index.blocks.read\_only" : "true"  
}'

which works fine but now I would like to remove this index and I'm facing  
this issue;

_{"error":"RemoteTransportException[[lonsl1101844-master][inet[/10.243.1.10:9300]][indices:admin/delete]];  
nested: ClusterBlockException[blocked by: [FORBIDDEN/5/index read-only  
(api)];]; ","status":403}_

I can't change anymore the configuration of the index as metdata writes are  
forbidden.

I also now have an issues with my different monitoring tools as they are  
using get \_settings/\_aliases.. request which are forbidden for this index.

Could you please indicate me how I can force the remove of this index or  
change its configuration?

Thanks,  
Nicolas

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/06aaed45-0208-4e4f-8c3e-d58adf93a388%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/06aaed45-0208-4e4f-8c3e-d58adf93a388%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [January 29, 2015, 9:45pm UTC](https://discuss.elastic.co/t/issue-removing-index-with-index-blocks-read-only-set-to-true/21899/2 "2015-01-29T21:45:52Z")

</div>

Just set that value to false and you should be good to go.

On 29 January 2015 at 23:58, 'Nicolas Fraison' via elasticsearch \<  
[elasticsearch@googlegroups.com](mailto:elasticsearch@googlegroups.com)\> wrote:

> Hi,
> 
> I was trying the settings to block data writes and also metadat writes to  
> an index applying this:
> 
> curl -XPUT '[http://testserver:9200/test\_index/\_settings](http://testserver:9200/test_index/_settings)' -d '{  
> "index.blocks.read\_only" : "true"  
> }'
> 
> which works fine but now I would like to remove this index and I'm facing  
> this issue;
> 
> _{"error":"RemoteTransportException[[lonsl1101844-master][inet[/10.243.1.10:9300]][indices:admin/delete]];  
> nested: ClusterBlockException[blocked by: [FORBIDDEN/5/index read-only  
> (api)];]; ","status":403}_
> 
> I can't change anymore the configuration of the index as metdata writes  
> are forbidden.
> 
> I also now have an issues with my different monitoring tools as they are  
> using get \_settings/\_aliases.. request which are forbidden for this index.
> 
> Could you please indicate me how I can force the remove of this index or  
> change its configuration?
> 
> Thanks,  
> Nicolas
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/06aaed45-0208-4e4f-8c3e-d58adf93a388%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/06aaed45-0208-4e4f-8c3e-d58adf93a388%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/06aaed45-0208-4e4f-8c3e-d58adf93a388%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/06aaed45-0208-4e4f-8c3e-d58adf93a388%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9XmE8unKH9JYz1r9CvyXO5A8%3DpGkeoXTMWBdQQz0S4cQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9XmE8unKH9JYz1r9CvyXO5A8%3DpGkeoXTMWBdQQz0S4cQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![BradVido](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bradvido/32/741_2.png) [@BradVido](https://discuss.elastic.co/u/BradVido)\
**Post date:** [April 2, 2015, 1:55pm UTC](https://discuss.elastic.co/t/issue-removing-index-with-index-blocks-read-only-set-to-true/21899/3 "2015-04-02T13:55:58Z")

</div>

I have the same problem. You can't change the value to false because  
metadata udpates are blocked and changing the value is itself a metadata  
update!  
Is there any way to delete this index now!?

On Thursday, January 29, 2015 at 3:46:22 PM UTC-6, Mark Walkom wrote:

> Just set that value to false and you should be good to go.
> 
> On 29 January 2015 at 23:58, 'Nicolas Fraison' via elasticsearch \<  
> [elasti...@googlegroups.com](mailto:elasti...@googlegroups.com) \<javascript:\>\> wrote:
> 
> > Hi,
> > 
> > I was trying the settings to block data writes and also metadat writes to  
> > an index applying this:
> > 
> > curl -XPUT '[http://testserver:9200/test\_index/\_settings](http://testserver:9200/test_index/_settings)' -d '{  
> > "index.blocks.read\_only" : "true"  
> > }'
> > 
> > which works fine but now I would like to remove this index and I'm facing  
> > this issue;
> > 
> > _{"error":"RemoteTransportException[[lonsl1101844-master][inet[/10.243.1.10:9300]][indices:admin/delete]];  
> > nested: ClusterBlockException[blocked by: [FORBIDDEN/5/index read-only  
> > (api)];]; ","status":403}_
> > 
> > I can't change anymore the configuration of the index as metdata writes  
> > are forbidden.
> > 
> > I also now have an issues with my different monitoring tools as they are  
> > using get \_settings/\_aliases.. request which are forbidden for this index.
> > 
> > Could you please indicate me how I can force the remove of this index or  
> > change its configuration?
> > 
> > Thanks,  
> > Nicolas
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/06aaed45-0208-4e4f-8c3e-d58adf93a388%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/06aaed45-0208-4e4f-8c3e-d58adf93a388%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/06aaed45-0208-4e4f-8c3e-d58adf93a388%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/06aaed45-0208-4e4f-8c3e-d58adf93a388%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/5f5f576a-bf33-44af-b671-e616b40e91af%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5f5f576a-bf33-44af-b671-e616b40e91af%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![ElasticSearch\_Users\_](https://avatars.discourse-cdn.com/v4/letter/e/b4bc9f/32.png) [@ElasticSearch\_Users\_](https://discuss.elastic.co/u/ElasticSearch_Users_)\
**Post date:** [April 2, 2015, 3:42pm UTC](https://discuss.elastic.co/t/issue-removing-index-with-index-blocks-read-only-set-to-true/21899/4 "2015-04-02T15:42:38Z")

</div>

Hi,  
If I remuer well the isssue of setting back the read-only setting to false was due to the fact that I was performing a Put instead of a post or the opposite.  
Let me know if it help you, if no I will look at some old scripts that I should have kept with this.  
Nicolas  
jeudi, 02 avril 2015, 03:55PM +02:00 de BradVido [bradyvidovic@gmail.com](mailto:bradyvidovic@gmail.com):

> I have the same problem. You can't change the value to false because metadata udpates are blocked and changing the value is itself a metadata update!  
> Is there any way to delete this index now!?  
> On Thursday, January 29, 2015 at 3:46:22 PM UTC-6, Mark Walkom wrote:
> 
> > Just set that value to false and you should be good to go.
> > 
> > On 29 January 2015 at 23:58, 'Nicolas Fraison' via elasticsearch \< [elasti...@googlegroups.com](mailto:elasti...@googlegroups.com) \> wrote:
> > 
> > > Hi,
> > > 
> > > I was trying the settings to block data writes and also metadat writes to an index applying this:  
> > > curl -XPUT  
> > > ' [http://testserver:9200/test\_index/\_settings](http://testserver:9200/test_index/_settings) ' -d ' {
> 
> "index.blocks.read\_only" : "true"
> 
> > > }'
> > > 
> > > which works fine but now I would like to remove this index and I'm facing this issue;  
> > > {"error":"RemoteTransportException[[lonsl1101844-master][inet[/10.243.1.10:9300]][indices:admin/delete]];  
> > > nested: ClusterBlockException[blocked by: [FORBIDDEN/5/index read-only  
> > > (api)];]; ","status":403}  
> > > I can't change anymore the configuration of the index as metdata writes are forbidden.
> > > 
> > > ## I also now have an issues with my different monitoring tools as they are using get \_settings/\_aliases.. request which are forbidden for this index. Could you please indicate me how I can force the remove of this index or change its configuration? Thanks, Nicolas
> > > 
> > > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) .  
> > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/06aaed45-0208-4e4f-8c3e-d58adf93a388%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/06aaed45-0208-4e4f-8c3e-d58adf93a388%40googlegroups.com) .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout) .
> 
> --  
> You received this message because you are subscribed to a topic in the Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit [https://groups.google.com/d/topic/elasticsearch/JkGihq3zcQw/unsubscribe](https://groups.google.com/d/topic/elasticsearch/JkGihq3zcQw/unsubscribe) .  
> To unsubscribe from this group and all its topics, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com) .  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/5f5f576a-bf33-44af-b671-e616b40e91af%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5f5f576a-bf33-44af-b671-e616b40e91af%40googlegroups.com) .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout) .

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/1427989358.488102988%40f12.my.com](https://groups.google.com/d/msgid/elasticsearch/1427989358.488102988%40f12.my.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:22am UTC](https://discuss.elastic.co/t/issue-removing-index-with-index-blocks-read-only-set-to-true/21899/5 "2017-07-06T00:22:01Z")

</div>


