FORBIDDEN/12/index read-only / allow delete (api)

Once you hit the floodstage watermark (95% by default), you must manually release the index lock — see https://www.elastic.co/guide/en/elasticsearch/reference/6.2/disk-allocator.html. The following will do the trick, which you need to run for every affected index:

PUT /your-index/_settings
{
  "index.blocks.read_only_allow_delete": null
}

PS: Please properly format your code; it's pretty hard to read otherwise.

8 Likes