For the past days I’ve been trying to make work the DELETE method through the Cloudflare API using an API token (since an API key has too much access, I have multiple domains on the account).
{"success":false,"errors":[{"code":10000,"message":"DELETE method not allowed for the api_token authentication scheme"}]}
Which made me think maybe the API token really is not allowed for the DELETE method (which would be weird and inefficient) but by searching it seems the same response error can be seen for simply putting the url wrong and on other request methods.
But I can’t find a solution for my delete method so I’m here to ask for help or a confirmation if it’s really not possible.
So it’s simply not possible? Because this endpoint requires an API key and not an API token after testing it which is really not preferable because I limited this token to only zone on purpose.
Though what’s confusing me is on the documentation page there’s also the Bearer Auth method?
The way auth is explained in the new API docs is stupid. You can use either an API key + email or an API token (the bearer auth). Just use your existing command but replace the endpoint with the one from the docs.