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

/dns/zones/{name}/records/{id}

First published 3 Oct 20260.1.0Unchanged since publication

Delete a record from a DNS zone

Who may call it
AdministratorResellerCustomer
Token scope, any of
dnsall
Answers200 OK

Administrators can delete records by ID from any zone, including delegation records and server-generated IP address and mail records for the web interface hostname. Deleting a server-generated record transfers control of its entire record set to the administrator.

The 200 response includes the zone, the record ID, deleted set to true, and the publication outcome.

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/dns/zones/example.com/records/1" \
  -H "Authorization: Bearer $TOKEN"
Response · 200 OK
{
  "deleted": true,
  "id": 1,
  "published": true,
  "reload": "text",
  "zone": "text"
}

Errors

8 errors, each a status and a sentence
400--<o> is required
400Domain name required
400Domain name too long
400Invalid domain name
400Invalid id
401Authentication required
403That record belongs to the server
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-dns-zones-name-records-id/