Why we can't delete a Custom Firewall Rule via the API?
It stays as "Unused Filter" and disabled. But still there.
curl -s -X DELETE "https://api.cloudflare.com/client/v4/zones/$zone_id/firewall/rules/$rule_id" \
-H "Authorization: Bearer MY_TOKEN" \
-H "Content-Type: application/json")
4 Replies
Hey, I'm facing same issue, did you ever find any solution to it?
Nop, even though I didn’t check for a while. But when I last dheck the issue was still there.
Found the solution on my end, try using:
https://developers.cloudflare.com/api/operations/deleteZoneRuleset
instead
Cloudflare API Documentation
Interact with Cloudflare's products and services via the Cloudflare API
Thsnks will give this a try!