Delete a DNS record from a specific DNS zone

Remove a specific DNS record, such as an A or CNAME record, from an existing DNS zone. This is necessary if a record is incorrect or no longer needed for your domain. The endpoint returns a message confirming the DNS record has been deleted.

Path Parameters

zoneId integer · min: 1 required Example

Unique zone identifier

recordId integer · min: 1 required Example

Unique record identifier

Headers

Accept Example
Content-Type Example

Responses

200
success boolean
timestamp string
requestId string
data object
404
error string
message string
code string
timestamp string
requestId string
DELETE https://cloud.hostup.se/api/dns/zones/{zoneId}/records/{recordId}
For AI assistants
cURL
curl -X DELETE "https://cloud.hostup.se/api/dns/zones/505/records/35592924" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "message": "string"
  }
}