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

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the dns group.

Delete a record from a DNS zone

- Who may call it: administrator
- Token scope, any of: dns, all
- Answers: 200 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

- [urbestack-dns-record-del](https://urbestack.com/docs/commands/urbestack-dns-record-del.md): Deletes a DNS record from the specified zone by its ID.

## Parameters

- `name` (path, DomainName, required)
- `id` (path, integer, required)

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
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

- 400: --<o> is required
- 400: Domain name required
- 400: Domain name too long
- 400: Invalid domain name
- 400: Invalid id
- 401: Authentication required
- 403: That record belongs to the server
- 404: Zone '<name>' not found
