Cant get rid of error "elasticsearch - retrying failed action with response code: 403"

Hi, Im triyng to get rid of the error thats appears when you have low space in the disk, I have deleted some files and now I have plenty of space, now I have to try to unlock the indexes, I have tried this two commands without success, I run this commands in my elastic search machine version 7.2, the IP is ficticious.

 curl -X PUT "255.255.255.255:9200/uptime-2019.11.08/_settings?pretty" -H 'Content- 
Type: application/json' -d'
{
  "index.blocks.read_only_allow_delete": null
}
'



curl -X PUT "255.255.255.255:9200/uptime-2019.11.08/_settings?pretty" -H 'Content- 
 Type: application/json' -d'
 {    
"index": {
 		"blocks": {
 		"read_only_allow_delete": "true"
     }
    }
}
'

You should move this to the elasticsearch forum.