NetBird Full API Reference + Read-Only MCP Prototype
DELETE/api/dns/nameservers/{nsgroupId}

Delete a nameserver group

Deletes a nameserver group identified by its unique ID. Use this operation to remove a group that you no longer need. The response indicates the deletion status.

1 parameter
nsgroupIdstringrequired
The unique identifier of the nameserver group to delete.

5 status codes
200Returns the deletion status.
400Returned when the request is invalid.
401Returned when authentication is required but missing or invalid.
403Returned when the request is forbidden.
500Returned when an internal server error occurs.

Error handling

A 400 is returned when the request is invalid. A 401 is returned when authentication is missing or invalid. A 403 indicates insufficient permission, and a 500 indicates an internal server error. The nsgroupId path parameter must identify the nameserver group to delete.