/dns/zones/{name}
0.1.0Unchanged since publicationDelete a server-owned zone or a DNS client's zone
dnsallDeletes a kept zone, an automatic zone for the web interface hostname or a nameserver, or a zone held for a DNS distribution client. Deletion removes all of the zone's records. This operation refuses zones belonging to a domain or alias. A domain's zone is deleted with the domain.
UrbeStack records the name of a deleted automatic or kept zone in dns.server_zones_removed if it matches an automatic zone name for the web interface hostname or a nameserver. Restore the zone by name with POST /dns/zones or urbestack-dns-zone-add. If the server hosts an enclosing zone, UrbeStack publishes the web interface hostname's IP address and mail records, or the nameserver's IP address records, in the enclosing zone. The response reports the deletion and publication results.
As a command
Run as root on the serverParameters
namepath ·DomainNameRequiredExample
See the API overview for how to set $API and $TOKEN.curl -sS -X DELETE "$API/dns/zones/example.com" \ -H "Authorization: Bearer $TOKEN"
200 OK{
"client": {
"address": "info@example.com",
"label": "my laptop"
},
"deleted": true,
"published": true,
"reload": "text",
"stays_deleted": true,
"zone": "text"
}Errors
7 errors, each a status and a sentence400--name is required400Domain name required400Domain name too long400Invalid domain name400Zone <z.name> belongs to 401Authentication required404Zone '<name>' not foundurbestack.com/docs/api/delete-dns-zones-name/