How to Delete a DNS Zone in cPanel (Step-by-Step) Print

  • dns zone, delete dns, dns management, cpanel dns, dns records, zone deletion, dns configuration, email routing
  • 0

Deleting a DNS zone removes all DNS records for a specific domain from your server, which is necessary when you no longer host that domain or when another DNS server becomes authoritative for it. In cPanel, you can delete one or multiple DNS zones through the DNS Zone Manager interface, though you must reconfigure email routing afterward to prevent mail delivery issues.

Important: Before deleting a DNS zone, understand that this action removes all DNS records for the domain and requires you to manually update email routing settings. DNS zones on write-only DNS servers in a cluster will not appear in the interface and cannot be deleted through this method.

When Should You Delete a DNS Zone?

You should delete a DNS zone in several specific situations. If you are transferring a domain to another hosting provider and that provider will handle DNS management, deleting the zone prevents conflicts between DNS servers. When you no longer own or manage a particular domain, removing its DNS zone keeps your server clean and organized.

Another common scenario is when you are consolidating domains or migrating to external DNS services like Cloudflare or other DNS providers. In these cases, deleting the zone from your server ensures that only one authoritative DNS source exists, preventing potential resolution conflicts.

How to Delete a Single DNS Zone

Deleting a single DNS zone is a straightforward process that takes just a few clicks. Follow these steps to remove one zone from your server:

  1. Log into your cPanel account and navigate to the DNS Zone Manager (found under the Domains section)
  2. Locate the Delete a DNS Zone interface
  3. Select the domain name you want to delete from the Choose Zones to Delete dropdown menu
  4. Click the Delete button
  5. On the confirmation screen, click Delete again to confirm the action

The system will immediately remove the DNS zone and all associated records. This action cannot be undone, so verify you have selected the correct domain before confirming.

How to Delete Multiple DNS Zones at Once

When you need to remove several DNS zones simultaneously, cPanel allows multi-selection for efficient bulk deletion. The selection method depends on your operating system.

On Windows computers, hold down the Ctrl key while clicking each zone you want to delete. On Mac computers, use the Command key instead. This allows you to select non-consecutive zones from the list.

If the zones you want to delete appear consecutively in the list, use a more efficient method: click the first zone, then hold Shift and click the last zone. This automatically selects all zones between your two clicks. After selecting all desired zones, click Delete and confirm the action on the next screen.

Important Considerations Before Deleting DNS Zones

Before you delete any DNS zone, you must reconfigure email routing for that domain. After deletion, the cPanel user must set the domain's email addresses to use the local mail exchanger. Access this setting through the Email Routing interface in cPanel (Home > Email > Email Routing). Without this configuration, emails sent to that domain may fail to deliver properly.

Additionally, DNS zones that reside on write-only DNS servers within a DNS cluster will not appear in the standard deletion interface. If you manage a DNS cluster, you may need to delete zones directly on those servers or through the cluster management tools instead.

Keep in mind that deleting a DNS zone is permanent. The system does not maintain backups of deleted zones, so ensure you have documented all custom DNS records if you might need them later. Consider exporting the zone file before deletion if you want to preserve the configuration.

What Happens After You Delete a DNS Zone

Once you delete a DNS zone, all DNS records for that domain are immediately removed from your server. This includes A records, MX records, CNAME records, and any custom DNS entries you created. The domain will no longer resolve through your server's DNS.

If external nameservers still point to your server for this domain, visitors will experience DNS resolution failures until those nameservers are updated. Make sure to update nameserver records at your domain registrar before or immediately after deleting the zone.

For domains using your server for email, mail delivery will stop working until you configure alternative MX records or update the email routing settings as mentioned earlier. Plan this transition carefully to avoid email disruptions for your users or customers.

Frequently Asked Questions

Can I recover a DNS zone after deleting it?

No, deleted DNS zones cannot be recovered through cPanel. The deletion is permanent and does not create automatic backups. If you need the zone again, you must manually recreate all DNS records or restore from your own backup if you created one before deletion. This is why it is critical to export or document your DNS configuration before deleting zones.

Will deleting a DNS zone affect my website immediately?

Your website will stop working for visitors once DNS propagation completes, typically within a few hours. However, some users may still access your site for up to 48 hours due to DNS caching. If you are migrating to another DNS provider, set up the new DNS zone before deleting the old one to minimize downtime.

Why can't I see certain DNS zones in the deletion interface?

DNS zones hosted on write-only DNS servers within a DNS cluster do not appear in the standard cPanel deletion interface. These zones must be managed through the cluster's master server or through WHM (Web Host Manager) if you have access. Contact your hosting administrator if you need to delete zones that do not appear in your interface.

What should I do about email after deleting a DNS zone?

After deleting a DNS zone, immediately configure the Email Routing settings in cPanel (Home > Email > Email Routing) to set the domain to use the local mail exchanger. Without this configuration, incoming emails to that domain will fail. If you are moving to external email services, update your MX records at your new DNS provider before deleting the zone.

If you need assistance with DNS zone management or have questions about your hosting configuration, the OBHost support team is available 24/7. Contact them at https://www.obhost.net/contact or email support@obhost.org for expert help.


Was this answer helpful?

« Back