I have created a bash based script to delete all the Cloudflare Access Rules. I have over 12,000 rules and 99% of them created by fail2ban. I want to delete all these rules. But the problem is that, when I use the Cloudflare API v4 calls, it took around 2-3 seconds to delete one IP access rule. Is there any way to delete all the ban action IP’s on one page at once?
Currently, I use this type of APIv4 calls (this is a summary of the code)
DELETE API v4 call (GET API v4 call without Optional parameters)
curl -s -X DELETE (curl -X GET )