---
title: "Delete DNS record"
sidebar_label: "Delete DNS record"
sidebar_position: 4
description: "How to delete a DNS record"
---

import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
import {TabItemLabel} from '@selectel/docux/components'
import MoreVerticalIcon from '@selectel/docux/icons/more-vertical'
import TrashIcon from '@selectel/docux/icons/trash'
import Formbricks from '@theme/MDXComponents/Formbricks'

# Delete DNS record

You can [delete a DNS record](#delete-record) or [delete an individual value from a record](#delete-value-from-record).

If a network is connected to a DNS zone and you delete an A or AAAA record that was added automatically, the record will be added again when the IP address or [port domain name](/cloud-servers/private-dns/manage-records/change-port-domain-name.mdx) in the network changes. Automatically added records are marked with the **Auto \*\*\*\* tag**.

You can check if a network is connected to a zone in the [control panel](https://my.selectel.ru/vpc/default/private-dns/): in the top menu, click **Products** → **Cloud Servers** → **Private DNS** → **DNS Resolvers** tab → find the **DNS zone** field in the network row.

## Delete record \{#delete-record}

1. In the [control panel](https://my.selectel.ru/vpc/default/private-dns/), from the top menu, click **Products** and select **Cloud Servers**.
2. Go to the **Private DNS** section.
3. Open the zone page.
4. In the **Records** block, select the records you want to delete.
5. Above the **Records** block, click <TrashIcon />.
6. To confirm record deletion, click **Delete**.

## Delete value from record \{#delete-value-from-record}

You can delete a value in an A, AAAA, MX, or TXT type record. For a CNAME type record, you can only [delete the record](#delete-record) entirely.

<Tabs queryString="add-record">
  <TabItem value="a" default>
    <TabItemLabel>
      A or AAAA
    </TabItemLabel>

    1. In the [Control panel](https://my.selectel.ru/vpc/default/private-dns/), on the top menu, click **Products** and select **Cloud Servers**.
    2. Go to the **Private DNS** section.
    3. Open the zone page.
    4. In the **Records** block, in the row of the required A or AAAA record, click <MoreVerticalIcon /> and select **Edit record**.
    5. In the **IPv4 address** or **IPv6 address** field, delete the required IP address. You cannot delete all addresses; to do so, [delete the record](#delete-record).
    6. Click **Save**.
  </TabItem>

  <TabItem value="mx">
    <TabItemLabel>
      MX
    </TabItemLabel>

    1. In the [Control panel](https://my.selectel.ru/vpc/default/private-dns/), on the top menu, click **Products** and select **Cloud Servers**.
    2. Go to the **Private DNS** section.
    3. Open the zone page.
    4. In the **Records** block, in the row of the required MX record, click <MoreVerticalIcon /> and select **Edit record**.
    5. In the row of the required value, click <TrashIcon />. You cannot delete all values in a record; to do so, [delete the record](#delete-record).
    6. Click **Save**.
  </TabItem>

  <TabItem value="txt">
    <TabItemLabel>
      TXT
    </TabItemLabel>

    1. In the [Control panel](https://my.selectel.ru/vpc/default/private-dns/), on the top menu, click **Products** and select **Cloud Servers**.
    2. Go to the **Private DNS** section.
    3. Open the zone page.
    4. In the **Records** block, in the row of the required TXT record, click <MoreVerticalIcon /> and select **Edit record**.
    5. In the row of the required value, click <TrashIcon />. You cannot delete all values in a record; to do so, [delete the record](#delete-record).
    6. Click **Save**.
  </TabItem>
</Tabs>

<Formbricks />
