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

/dns/distribution/nodes/{address}

First published 12 Nov 20260.2.28Unchanged since publication

Record a node's departure from the DNS distribution network

Who may call it
Anyone (no token needed)
Token
none
Answers200 OK

Send the departing node's key as a Bearer credential in the Authorization header. Send the request from the node's licensed IPv4 address and use that same IPv4 address in X-Urbestack-Address and in the path. A missing or invalid X-Urbestack-Address returns 400. The operation returns 403 for an IPv4 address mismatch, a client's key, or the key of a node that has yet to join. If the receiving node's license prevents changes, it returns 402.

With zones=keep, the default, the departing node becomes a client and remains the origin of its zones. It can continue sending updates or stop sending them. With zones=delete, the receiving node removes the departing node and its zones. Other values return 400. The first remaining node takes over the departing node's nameserver name, and UrbeStack renders the zones with the new assignment. The departing node must notify each remaining node directly.

A 200 response includes left set to true, the zones mode, the number of zones deleted in deleted, and the resulting nameservers, nodes, and dns data. UrbeStack can record up to 300 characters of the refusal reason in the Clients tab for failed license or IPv4 address checks and errors applying the departure.

A missing or unknown key returns 401. For seven days after the calling server is removed, its revoked key can return 403 with removed details containing at, on, and node. For seven days after the receiving server leaves or is removed, it returns 410 to callers whose keys it still recognizes, with left details containing at, zones, and nodes.

As a command

Run as root on the server

Parameters

addresspath ·stringRequired
Departing node's own licensed IPv4 address.
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/nodes/info@example.com?zones=keep"
Response · 200 OK
{
  "deleted": 1,
  "dns": {},
  "left": true,
  "nameservers": [
    "text"
  ],
  "nodes": [
    {
      "address": "info@example.com",
      "hostname": "server.example.com",
      "ipv4": "text",
      "ipv6": "text",
      "nameservers": [
        "text"
      ],
      "port": 8443
    }
  ],
  "zones": "text"
}

Errors

13 errors, each a status and a sentence
400--address is required
400Domain name required
400Domain name too long
400Invalid IPv4 address
400Invalid domain name
400X-Urbestack-Address must carry the client's own IPv4 address
400zones is keep or delete
401Unknown key
402This node refuses changes: <why>
403The call came from <remote> but the server says its address is <said>. A server behind NAT cannot be a client
403This key belongs to the client at <c.address>, and the call came from <remote>
403This server was removed from the distribution network on
410This server is no longer a node of the distribution network: it
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-nodes-address/