Delete DNS records for multiple domains

Bulk delete specific DNS record types from multiple domains simultaneously. This is useful for cleaning up DNS settings or removing old records. The endpoint returns a jobId to track the job via GET /api/jobs/{jobId}.

Domains & DNS DNS

Context

Used in the dashboard

/domains/bulk-dns

Workflow links

Headers

Accept Example
Content-Type Example

Body

required
application/json
deleteType string required · Example: by_type
domainNames array required · Example: ["example.com","example.com","example.com"]
recordType string required · Example: TXT

Responses

200
data object required
data.deleteDescription string required · Example: all TXT records
data.deleteType string required · Example: by_type
data.domainsCount integer required · Example: 41
data.jobId string · Example: bulk_dns_delete-1028-1700000000028
data.message string · Example: Bulk DNS delete started for 41 domain(s) - deleting all TXT records

Human-readable message.

requestId string required · Example: 2121ae20-bd9d-41e9-aeeb-5dd1dd1a24ba

Unique request identifier (UUID).

success boolean required · Example: true

True for successful responses.

timestamp string · Example: 2026-02-10T00:00:00.000Z

ISO 8601 timestamp (UTC).

POST https://cloud.hostup.se/api/domains/bulk/dns/delete
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/domains/bulk/dns/delete" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "domainNames": [
      "example.com",
      "example.com",
      "example.com"
    ],
    "deleteType": "by_type",
    "recordType": "TXT"
  }'
Response
{
  "success": true,
  "timestamp": "2026-02-10T00:00:00.000Z",
  "requestId": "2121ae20-bd9d-41e9-aeeb-5dd1dd1a24ba",
  "data": {
    "jobId": "bulk_dns_delete-1028-1700000000028",
    "message": "Bulk DNS delete started for 41 domain(s) - deleting all TXT records",
    "domainsCount": 41,
    "deleteType": "by_type",
    "deleteDescription": "all TXT records"
  }
}
Request Body Example 1
{
  "domainNames": [
    "example.com",
    "example.com",
    "example.com"
  ],
  "deleteType": "by_type",
  "recordType": "TXT"
}