Skip to main content
DELETE
/
domains
/
{domain_id}
/
dns-records
Delete domain DNS record
curl --request DELETE \
  --url https://api.kinsta.com/v2/domains/{domain_id}/dns-records \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "A",
  "name": "staging.mydomain.com"
}
'
{
  "message": "Deleting domain DNS record in progress",
  "status": 202,
  "operation_id": "domains:delete-dns-record-54fb80af-576c-4fdc-ba4f-b596c83f15a1"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

domain_id
string<uuid>
required
Example:

"54fb80af-576c-4fdc-ba4f-b596c83f15a1"

Body

application/json
type
string
required
Example:

"A"

name
string
required
Example:

"staging.mydomain.com"

Response

Domain DNS record deletion action started. Check MyKinsta for status

message
string
required
Example:

"Deleting domain DNS record in progress"

status
number
required
Example:

202

operation_id
string
Example:

"domains:delete-dns-record-54fb80af-576c-4fdc-ba4f-b596c83f15a1"