Unable to Delete Zero Trust Application

Hi folks,

Not sure how to delete an application in Zero Trust where there is an error There was an error deleting your application? I tried to delete it through the CLI with different API keys, but so far without success :slight_smile:

curl -X DELETE "https://api.cloudflare.com/client/v4/accounts/2d629a2253efdf8825801acac44e5492/access/apps/f1bfadbe-c8ac-4db8-9353-4fc311c1e448" \
-H "X-Auth-Email: [email protected]" \
-H "X-Auth-Key: FnwW4bM" \
-H "Content-Type: application/json"

{"success":false,"errors":[{"code":10000,"message":"Authentication error"}]}

Thank you :slight_smile:

UPD: I most likely didn’t provide the correct permissions for the token :sweat_smile:

I just successfully deleted one of the Appsmith apps using this command with a new token with edit rights :slight_smile:

curl -X DELETE "https://api.cloudflare.com/client/v4/accounts/2d629a2253efdf8825801acac44e5492/access/apps/f1bfadbe-c8ac-4db8-9353-4fc311c1e448" \
-H "Authorization: Bearer NhRrYMn"
1 Like