# DELETE /domains/{name}/dns/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 DNS record

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

- [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/domains/example.com/dns/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
- 400: Records for a subdomain live in the zone of <parent>
- 401: Authentication required
- 403: That record belongs to the server
- 404: <name> is neither this domain nor one of its other names
- 404: Record <id> not found
- 404: Zone '<name>' not found
