CloudFlare - Bulk remove DNS records
Remove all your DNS records into CloudFlare
- Configure variable "domain" with your CloudFlare registered domain.
- api_email is your login email
- api_key is available here : https://dash.cloudflare.com/profile/api-tokens
- zone_identifier will be found by the first request
- recordToDelete will be found by the second request
https://medium.com/@quentinrozados/how-to-remove-all-cloudflare-dns-bulk-remove-93bd2a0366ba
GETZone List
https://api.cloudflare.com/client/v4/zones?name=sinao.fr
HEADERS
X-Auth-Email
X-Auth-Key
PARAMS
name
Example Request
Zone List
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers
GETDNS List records
https://api.cloudflare.com/client/v4/zones/:zone_identifier/dns_records
HEADERS
X-Auth-Email
X-Auth-Key
PATH VARIABLES
zone_identifier
Example Request
DNS List records
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers
DELETEDNS Delete record
https://api.cloudflare.com/client/v4/zones/:zone_identifier/dns_records/:identifier
HEADERS
X-Auth-Email
X-Auth-Key
PATH VARIABLES
zone_identifier
identifier
Example Request
DNS Delete record
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers