Unable to delete index, unable to mark it as read-only false

I tried following the solution here

But in my case running
PUT my_index/_settings
{
"settings": {
"index.blocks.read-only": false
}
}

yields
FORBIDDEN/5/index read-only (api)

So I am in a catch 22 situation where my index needs to be set to NOT read only but I can write to the settings because it is read only. My version is 8.12

Hi @Carlos_Fernando_Palm

Bad syntax

Incorrect
"index.blocks.read-only": false

Correct
"index.blocks.read_only": false
..................^

1 Like