© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Why we can't delete a Custom Firewall Rule via the API? - Cloudflare Developers
CD
Cloudflare Developers
•
3y ago
•
4 replies
alex
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
"
)
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
86,942
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Firewall Rule
CD
Cloudflare Developers / general-help
2y ago
Checking firewall events via API
CD
Cloudflare Developers / general-help
3y ago
Can't create a firewall rules
CD
Cloudflare Developers / general-help
16mo ago
What permissions are required to update a WAF rule via the API?
CD
Cloudflare Developers / general-help
2y ago