Delete 150 autogenerated DNS records

Hey there!
I’ve just registered another domain to Cloudflare and for some reason it has automatically added 150 DNS records that didn’t exist before. I was wondering if there was a quick way to delete them all, since deleting each one would take ages…


This gist enables you to delete all your DNS record for a zone programmatically using the Cloudflare API.

You’ll need a token for your account which has permissions to delete DNS records for the zone. And the zone ID for the zone as well.


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.