Recently credentials are failing in the Kibana web interface. Checking the logs there is an error indicating disk usage is exceeded.
{"type":"log","@timestamp":"2021-08-08T20:41:52-05:00","tags":["error","plugins","apm"],"pid":2366,"message":"Could not create index: '.apm-custom-link'. Error: cluster_block_exception: [cluster_block_exception] Reason: index [.apm-custom-link] blocked by: [TOO_MANY_REQUESTS/12/disk usage exceeded flood-stage watermark, index has read-only-allow-delete block];."}
I've seen different references around on the net stating to "free up space" and then run these commands to unlock the indices.
curl -XPUT -H "Content-Type: application/json" http://10.6.67.30:9200/_cluster/settings -d '{ "transient": { "cluster.routing.allocation.disk.threshold_enabled": false } }'
curl -XPUT -H "Content-Type: application/json" http://10.6.67.30:9200/_all/_settings -d '{"index.blocks.read_only_allow_delete": null}'
How do I go about safely deleting indices via the CLI since I cannot use the Kibana interface?
Thanks,