# delete_dns_record

Source: https://modulify.ai/docs/mcp/bought-domains/delete-dns-record

Deletes one DNS record of a domain the workspace bought, chosen by its Id from list_dns_records.

- Title: Delete a DNS record of a bought domain
- Scope: `domains:write`
- Access: Destructive

Sites, email or services that rely on the record can stop working once DNS servers drop their cached copy, so the tool tells the client to confirm with you first. A record that is already gone answers `The DNS record was already deleted.` A record with `Locked` true is refused, because Modulify manages it, and the refusal says what releases it.

It needs the **Manage domains** permission, and the domain must be `active` or `expiring`. The workspace can make 30 domain changes a minute, shared with the **Domains** page and covering DNS records, nameservers, the registrant, the transfer lock, auto-renew and transfer codes, and a refusal says how long to wait. See [Edit or delete a record](https://modulify.ai/docs/publish/manage-dns#edit-or-delete-a-record).

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `workspaceId` | string | Yes | The workspace that owns the domain. |
| `domainId` | string | Yes | The `_id` of the bought domain, from `list_bought_domains`. |
| `recordId` | integer | Yes | The `Id` of the record, from `list_dns_records`. |