Get your free beta license ↗
API operation · dns group
DELETE

/dns/distribution

First published 12 Nov 20260.2.28Unchanged since publication

Disconnect this server from its DNS distribution network

Who may call it
AdministratorResellerCustomer
Token scope, any of
dnsall
Answers200 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

Run as root on the server

Parameters

zonesquery ·string, one of keep, delete

Example

See the API overview for how to set $API and $TOKEN.
Request
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

3 errors, each a status and a sentence
400zones is keep or delete
401Authentication required
409This server is a node of a distribution network, not a client. A node leaves its network: use Leave the network
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.2.28 on 12 Nov 2026.
urbestack.com/docs/api/delete-dns-distribution/