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
Ed Craven
Ed Craven7mo ago
Hey, I'm facing same issue, did you ever find any solution to it?
alex
alexOP7mo ago
Nop, even though I didn’t check for a while. But when I last dheck the issue was still there.
Ed Craven
Ed Craven7mo ago
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
alex
alexOP6mo ago
Thsnks will give this a try!

Did you find this page helpful?