---
title: "Remove DNS Record"
method: DELETE
path: "/v1/domains/{domain}/dns-records/{recordId}"
tags: ["Domains"]
---

# Remove DNS Record

`DELETE /v1/domains/{domain}/dns-records/{recordId}`

Remove a DNS record that was added to a domain bought in Migma. Only removes records the user added, never Migma's own sending records. Requires API key with domain:write permission.

## Path parameters

- `domain` string, required
- `recordId` string, required

## Response `200`

DNS record removed

- ApiResponseDnsRecordRemoved
  - `success` boolean, required
  - `data` object, nullable
    - `ok` boolean, required
  - `error` string, nullable

## Other responses

- `401` — Unauthorized
- `403` — Forbidden - Missing required permissions or access denied
- `404` — Resource not found

---

[API](https://skmtc.net/migma/apis/migma-ai-api-v1.md) · [All operations](https://skmtc.net/migma/apis/migma-ai-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/migma/migma-ai-api-v1/revisions/2d06ad0e0bc3/schema)
