# DELETE /dns/distribution

First published 12 Nov 2026 (release 0.2.28) · Unchanged since publication

UrbeStack release 0.2.35 API operation in the dns group.

Disconnect this server from its DNS distribution network

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

UrbeStack discards the key, stops sending zone updates, and stops the retry timer. With zones=keep, the default, each node retains its copies of this server's zones. With zones=delete, UrbeStack sends one deletion request per zone to each node before disconnecting. Any other zones value returns 400.

If a deletion fails, the zone stays on that node. The left field identifies the zone and node so a network administrator can remove it from the Clients tab of the DNS zones section. A node that misses the disconnection notice learns of the disconnection from a node that received it.

## As a command

- [urbestack-dns-disconnect](https://urbestack.com/docs/commands/urbestack-dns-disconnect.md): Disconnects this server from its DNS distribution network, discards the key and stops zone updates and the retry timer.

## Parameters

- `zones` (query, string, one of keep, delete)

## 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/distribution?zones=keep" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "connected": true,
  "deleted": 1,
  "left": [
    {
      "error": "Domain 'example.com' already exists",
      "host": "text",
      "name": "alice",
      "node": "text"
    }
  ],
  "nodes": [
    {
      "address": "info@example.com",
      "host": "text",
      "port": 8443
    }
  ],
  "server": {},
  "told": [
    {
      "done": true,
      "error": "Domain 'example.com' already exists",
      "host": "text",
      "node": "text"
    }
  ],
  "zones": "text"
}
```

## Errors

- 400: zones is keep or delete
- 401: Authentication required
- 409: This server is a node of a distribution network, not a client. A node leaves its network: use Leave the network
