# DELETE /dns/clients/{address}

First published 21 Oct 2026 (release 0.2.13) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the dns group.

Remove a DNS distribution client or node

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

Removal revokes the server's key, and UrbeStack sends the removal to the other nodes. The default, zones=delete, deletes all zones held here for that server and rebuilds the DNS data. Use zones=hand with to=ADDRESS to transfer all its zones to a different registered client, such as the server to which all its sites moved. The transferred zones continue serving their existing records until the recipient pushes them. An unsupported zones value returns 400.

Use this operation to remove a node that cannot leave on its own. It stops being a node immediately, and its key is revoked on every node. The first remaining node takes over its nameserver names, and the corresponding DNS records are updated to point to that node. Update the corresponding host records at the registrar. Clients stop sending to the removed node within an hour. If it is still running, it learns of the removal on its next call and freezes its copies of the network's zones.

For node removal, zones=keep retains the zones the node last sent under a client entry with a revoked key. You can delete or transfer them later. For seven days, calls to the distribution API using the revoked key receive 403 with the removal reason. The response identifies the removed server and affected zones, gives the number of zones deleted, identifies the recipient for a transfer and reports the DNS update result.

## As a command

- [urbestack-dns-client-del](https://urbestack.com/docs/commands/urbestack-dns-client-del.md): Removes the DNS client at the IPv4 address given by --address and revokes its key.

## Parameters

- `zones` (query, string, one of delete, hand, keep)
- `to` (query, string): IPv4 address of the registered client that receives the zones. Required when zones=hand.

## 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/clients/{address}?zones=delete&to=text" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "client": {
    "address": "info@example.com",
    "also_nameservers": [
      "text"
    ],
    "created_at": "2026-09-09T10:15:00Z",
    "created_by": "text",
    "created_on": "text",
    "disconnected_at": "text",
    "hostname": "server.example.com",
    "ipv4": "text",
    "ipv6": "text",
    "joined_at": "text",
    "joining_as": "text",
    "label": "my laptop",
    "last_error": "text",
    "last_seen_at": "text",
    "nameserver": "text",
    "node": true,
    "port": 8443,
    "zones": 1
  },
  "deleted": 1,
  "dns": {},
  "handed_to": "text",
  "zones": [
    "text"
  ]
}
```

## Errors

- 400: --address is required
- 400: Handing the zones needs the client to hand them to
- 400: Invalid IPv4 address
- 400: The zones cannot be handed to <c.address> itself
- 400: When a node removes a client, its zones must be deleted or transferred to another client
- 400: zones is delete, hand or, for a node, keep
- 401: Authentication required
