Delete a DNSSEC record
DELETE /api/v2/domains/{id}/dnssec/{recordId}
Removes one DS or KEY record for the domain at the registry. Check that actions.canRemove.allowed is true on GET /api/v2/domains/{id}/dnssec first. The change goes to the registry right away. Removing the last record turns DNSSEC off for the domain.
Authentication: An API key with the scope write:domains. About keys and scopes
Request
Path parameters
idstringrequiredThe domain ID (
dom_…).recordIdstringrequiredThe DNSSEC record ID (
dsr_…) from dsRecords[].id or keyRecords[].id on GET /api/v2/domains/{id}/dnssec.Body (optional)
recoveryValuesobjectValues asked for by a previous
dnssec_recovery_required response. Send only the keys listed in recovery.fields. Send no body otherwise.Example
curl -X DELETE "https://cloud.hostup.se/api/v2/domains/dom_01hxa3b4c5d6e7f8g9h0j1k2m3/dnssec/dsr_01hxa3b4c5d6e7f8g9h0j1k2m3" \ -H "Authorization: Bearer $HOSTUP_API_KEY"Responses
204 The record was removed. No response body.
Errors
Errors are Problem Details with a stable code. Branch on the code, not on the text.
| 400 | recordId is not a valid DNSSEC record ID or the registry refused the change. |
| 401 | Unauthorized. Authentication is required. |
| 403 | Forbidden. The caller lacks a required scope or does not own the resource. |
| 404 | Not found. The resource does not exist or is not owned by the caller; code is domain_not_found. |
| 422 | The registry needs more details first. recovery.fields lists them. Send them as recoveryValues and try again. A field with target account is changed in the account details instead. |
| 429 | Rate limited. Retry after the limit resets. 429 responses include Retry-After seconds plus X-RateLimit-* headers. |
| 500 | Internal error. Retry later or contact support if the issue persists. |