Public
Documentation Settings

CloudFlare - Bulk remove DNS records

Remove all your DNS records into CloudFlare



  • 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

quentin@sinao.fr

X-Auth-Key
PARAMS
name

sinao.fr

Example Request
curl
curl --location 'https://api.cloudflare.com/client/v4/zones?name=sinao.fr' \
--header 'X-Auth-Email: quentin@sinao.fr' \
--header 'X-Auth-Key;'
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

quentin@sinao.fr

X-Auth-Key
PATH VARIABLES
zone_identifier
Example Request
curl
curl --location 'https://api.cloudflare.com/client/v4/zones/:zone_identifier/dns_records' \
--header 'X-Auth-Email: quentin@sinao.fr' \
--header 'X-Auth-Key;'
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

quentin@sinao.fr

X-Auth-Key
PATH VARIABLES
zone_identifier
identifier
Example Request
curl
curl --location --request DELETE 'https://api.cloudflare.com/client/v4/zones/:zone_identifier/dns_records/:identifier' \
--header 'X-Auth-Email: quentin@sinao.fr' \
--header 'X-Auth-Key;'
Example Response
No response body
This request doesn't return any response body
No response headers
This request doesn't return any response headers