Delete DNS Record
delete_dns_recordDelete a DNS record by its numeric record ID from list_dns_records, ideal for managing Porkbun DNS; idempotent, check warnings if domain uses other nameservers.
Instructions
Delete a single DNS record by its numeric record_id (obtained from list_dns_records). Idempotent: deleting an already-deleted record returns success. Free.
Check warnings in the response and pass it on. Porkbun keeps a DNS zone for every domain in the account whether or not the domain is delegated to Porkbun's nameservers, so this write succeeds either way. If the domain points somewhere else, the response is still SUCCESS but carries a warnings string naming the nameservers that actually answer — the record exists and nothing resolves differently. Do not report plain success in that case: either make the change at the provider that runs those nameservers, or offer update_nameservers to point the domain at Porkbun.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain the record belongs to, e.g. `example.com` | |
| dry_run | No | If true, validate only — confirms the record exists and is deletable, returns wouldSucceed without deleting it. | |
| record_id | Yes | Numeric record ID (as a string). |