Get your free beta license ↗
API operation · dns group
DELETE

/domains/{name}/dns/records/{id}

First published 3 Oct 20260.1.0Unchanged since publication

Delete a DNS record

Who may call it
AdministratorResellerCustomer
Token scope, any of
dnsall
Answers200 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 server

Parameters

namepath ·DomainNameRequired
idpath ·integerRequired

Example

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 sentence
400--<o> is required
400Domain name required
400Domain name too long
400Invalid domain name
400Invalid id
400Records for a subdomain live in the zone of <parent>
401Authentication required
403That record belongs to the server
404<name> is neither this domain nor one of its other names
404Record <id> not found
404Zone '<name>' not found
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/