How to Remove a Subdomain in cPanel

How to Remove a Subdomain in cPanel

How to Remove a Subdomain in cPanel

Removing a subdomain in cPanel is a straightforward process, often necessary when you’re restructuring your website, removing unused sections, or cleaning up your hosting environment. Here’s a detailed guide on how to delete a subdomain through cPanel:

Understanding Subdomain Removal

  • Impact: Removing a subdomain will delete its associated directory and files, along with any databases or email addresses linked to it, depending on your cPanel settings.
  • Backup: Before proceeding, ensure you have backups of any important data related to the subdomain.


  • cPanel Access: You need to have the login credentials for cPanel.
  • Subdomain Details: Be clear about which subdomain you intend to remove.

Get Started with Drupal Hosting Today

Drupal can be installed instantly and for free using our 1-Click script installer:

Get Started with Drupal Web Hosting Today

Step-by-Step Guide to Remove a Subdomain in cPanel

1. Log into cPanel

  • Access your cPanel by visiting http://yourdomain.com/cpanel (replace yourdomain.com with your actual domain name).
  • Enter your username and password to log in.

2. Access the Subdomains Section

  • Once logged in, locate the ‘Domains’ section and click on the ‘Subdomains’ icon. This will take you to the page where you can manage all your subdomains.

3. Locate the Subdomain to Remove

  • On the Subdomains page, you’ll see a list of all existing subdomains.
  • Find the subdomain you wish to remove. You can use the search feature if you have many subdomains.

4. Remove the Subdomain

  • Next to the subdomain, you should see a ‘Remove’ or ‘Delete’ option. Click on this.
  • A confirmation prompt will appear, asking if you are sure you want to delete the subdomain. It may also warn you about the deletion of associated files and directories.

5. Confirm the Removal

  • If you are sure you want to proceed, confirm the deletion.
  • The subdomain will be removed from your account, along with its root directory and all associated files.

6. Check for Additional Clean-Up

  • If there were any email accounts or databases specifically associated with the subdomain, you might need to remove them separately. This can be done through the ‘Email Accounts’ and ‘MySQL Databases’ sections in cPanel.

7. Verify the Removal

  • After removal, you may want to check that the subdomain no longer resolves. Simply try accessing the subdomain in your web browser.
  • Also, ensure that the subdomain’s directory and files are no longer present in your file manager or FTP client.

Additional Tips

  • DNS Records: If you manually added DNS records for the subdomain, consider removing them from the Zone Editor in cPanel.
  • Redirects: If there were any redirects set up for the subdomain, remove them to avoid any errors or conflicts.


Removing a subdomain in cPanel is a simple process but requires careful consideration of the data and configurations associated with the subdomain. Always ensure that you have backups before proceeding and double-check to ensure that you are removing the correct subdomain. Regular maintenance of your subdomains helps in keeping your hosting environment organized and efficient.


Previous Post
How to create or delete an Email Autoresponder in cPanel
Next Post
How to optimize the database via phpMyAdmin in cPanel