# DELETE /dns/distribution/nameservers/{name}

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

UrbeStack release 0.2.35 API operation in the dns group.

Remove a nameserver from the DNS distribution network

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

Call as an administrator with a token that has the dns scope on any node. Wait until all domains have stopped using the nameserver at their registrars. UrbeStack removes it from the network's nameserver list and every zone's NS records, and notifies the other nodes.

The operation returns 409 if removal would leave a node without a nameserver. A 200 response includes name, dropped set to true, the resulting nameservers and nodes, and the notification results in told.

## As a command

- [urbestack-dns-nameserver](https://urbestack.com/docs/commands/urbestack-dns-nameserver.md): Moves or drops a nameserver in this server's DNS distribution network.

## Parameters

- `name` (path, string, 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/distribution/nameservers/alice" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "dropped": true,
  "name": "alice",
  "nameservers": [
    "text"
  ],
  "nodes": [
    {
      "address": "info@example.com",
      "hostname": "server.example.com",
      "ipv4": "text",
      "ipv6": "text",
      "nameservers": [
        "text"
      ],
      "port": 8443
    }
  ],
  "told": [
    {
      "done": true,
      "error": "Domain 'example.com' already exists",
      "host": "text",
      "kind": "profile",
      "node": "text",
      "subject": "text"
    }
  ]
}
```

## Errors

- 400: --name is required
- 400: Domain name required
- 400: Domain name too long
- 400: Invalid IPv4 address
- 400: Invalid IPv6 address
- 400: Invalid domain name
- 400: Invalid port
- 400: Invalid setting key
- 400: Moving a nameserver needs the node it goes to, or say that it is dropped
- 400: Say what becomes of the nameserver: --to ADDRESS, or --drop
- 400: The nameserver name is needed
- 401: Authentication required
- 404: <name> is not one of this network's nameservers
- 404: Setting '<key>' not found
- 409: <name> is already answered by the node at <to>
- 409: This server is not a node of a distribution network. Its own nameservers are set on DNS zones › Nameservers & addresses
