Delete by query api - [FORBIDDEN/8/index write (api)]


The version of our Elasticsearch is: 7.8 (Platinum)

I tried to delete some indices by using delete_by_query and I have the following error.

"type" : "cluster_block_exception",
          "reason" : "index [shrink-index-data-000012] blocked by: [FORBIDDEN/8/index write (api)];"

I also checked that I have enough space and the cluster is green with No unassigned shards.
Why am I having this error? How can I delete those documents in this specific index?



Check if your index is set as readonly


Hi Kim,

Thank you for your response.

It is not read only.

index.blocks.read_only_allow_delete": "false"


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