# DELETE /dns/zones/{name}/taken

First published 16 Oct 2026 (release 0.2.6) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the dns group.

Return control of a DNS record set to UrbeStack

- Who may call it: administrator
- Token scope, any of: dns, all
- Answers: 200 OK

UrbeStack removes the administrator's records for the specified name and type and generates the set again from the current server settings. The 200 response includes the zone, name, type, number of records removed, and publication outcome.

## As a command

- [urbestack-dns-take](https://urbestack.com/docs/commands/urbestack-dns-take.md): Transfers control of a DNS record set that UrbeStack generates to the administrator.

## Parameters

- `name` (path, DomainName, required)
- `name` (query, string, up to 200 characters, required): Record name relative to the zone, or @ for the apex.
- `type` (query, string, one of A, AAAA, CNAME, MX, TXT, SRV, CAA, NS, 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/taken?name=alice&type=A" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "name": "alice",
  "published": true,
  "reload": "text",
  "removed": 1,
  "type": "rebuild",
  "zone": "text"
}
```

## Errors

- 400: --<o> is required
- 400: Domain name required
- 400: Domain name too long
- 400: Invalid domain name
- 400: Invalid record name
- 400: Record name required
- 400: Record name too long
- 400: Record type must be one of 
- 400: The panel writes no <type> record at <name> in <zone.name>; it is yours already
- 401: Authentication required
- 404: The <type> records at <name> in <zone.name> are not taken over; the panel writes them already
- 404: Zone '<name>' not found
