curl -X DELETE "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records/$RECORD_ID" -H 'Authorization: Bearer $CF_API_TOKEN'

Category: Cloudflare

curl -X DELETE "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records/$RECORD_ID" -H 'Authorization: Bearer $CF_API_TOKEN'

Delete a DNS record

Permanently removes the record, so anything resolving through it stops working, including email if you delete an MX record by mistake. There is no undo; recreate it with the POST command if needed. Confirm RECORD_ID against `wrangler`-free list output before deleting.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.