Delete a hostname
DELETE
/api/zones/{zoneId}/hostnames/{id}
Removes the hostname. If CDN is enabled the CDN pull-zone entry is disabled first; CDN failures surface as 400 (rejected) or 503 (temporarily unavailable). The change then takes effect on the live configuration.
Authorizations
ApiToken
Long-lived API token created via POST /api/api-tokens (returned once in plaintext).
Type
API Key (header: X-API-TOKEN)
or
JWT
JWT access token obtained via POST /api/auth/login. Send as: Authorization: Bearer
Type
HTTP (bearer)
Parameters
Path Parameters
zoneId*
Zone identifier
Type
Requiredstring
id*
hostname identifier
Type
Requiredstring
Responses
hostname resource deleted
