API operation · dns group
DELETE
/domains/{name}/dns/records/{id}
First published 3 Oct 2026
0.1.0Unchanged since publicationDelete a DNS record
Who may call it
AdministratorResellerCustomer
Token scope, any of
dnsallAnswers200 OK
The record ID identifies a record in the domain's zone or one of its alias zones. An unknown ID or a record in an unrelated zone returns 404. Targeting a subdomain's own zone returns 400. Use the parent domain in the path to delete records from the parent zone.
Only administrators can delete records maintained by the server, such as delegation records. For customer and reseller requests, UrbeStack verifies that the zone still belongs to the domain's customer when it deletes the record. The response includes the zone name, the record ID, deleted set to true, and the publication status.
As a command
Run as root on the serverParameters
namepath ·DomainNameRequiredidpath ·integerRequiredExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X DELETE "$API/domains/example.com/dns/records/1" \ -H "Authorization: Bearer $TOKEN"
Response ·
200 OK{
"deleted": true,
"id": 1,
"published": true,
"reload": "text",
"zone": "text"
}Errors
11 errors, each a status and a sentence400--<o> is required400Domain name required400Domain name too long400Invalid domain name400Invalid id400Records for a subdomain live in the zone of <parent>401Authentication required403That record belongs to the server404<name> is neither this domain nor one of its other names404Record <id> not found404Zone '<name>' not foundNo error of this operation matches.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/delete-domains-name-dns-records-id/