User Agents

Web browsers and everyday web tech, explained

Remove an Addon Domain in cPanel: Step-by-Step

· 4 min read · Extensions

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Removing an addon domain in cPanel deletes the domain from your hosting account, along with its associated document root folder, subdomain, and the DNS entries that point it to your server. This is useful when you no longer need a website, want to free up a domain slot, or are moving the domain elsewhere. Before you start, make sure you have backed up any files in the addon domain's directory and exported its databases, because removal permanently deletes the folder and its contents.

What You'll Need

  • Access to your cPanel account (usually via yourdomain.com/cpanel or a provided URL).
  • Your cPanel username and password (or the credentials you use to log in).
  • A backup of any files in the addon domain's document root (e.g., public_html/addondomain.com) – download via FTP or File Manager.
  • A backup of any databases associated with the addon domain (use phpMyAdmin or cPanel's Backup wizard).

Step-by-Step

  1. Log in to your cPanel account using your credentials.
  2. In the Domains section, click on Domains (or Addon Domains, depending on your cPanel theme). This opens the Domains management page.
  3. Locate the addon domain you want to remove in the list. Each domain will show its document root and the main domain it is attached to.
  4. Click the Manage button next to the addon domain. This opens a settings panel for that domain.
  5. Scroll to the bottom of the settings panel and click Remove (or Delete). A confirmation dialog will appear.
  6. Read the warning carefully – it will state that removing the addon domain will also remove its document root folder and all files inside it. If you have backed up, click Yes, Remove (or Confirm).
  7. Wait a few seconds for cPanel to process the removal. You will see a success message confirming the domain has been removed.
  8. Optional: Check that the domain's DNS entries (A record) no longer point to your server. If you plan to reuse the domain elsewhere, update its nameservers with your registrar.

Common Mistakes

  • Forgetting to back up files: The document root folder is deleted permanently. If you skip the backup, you lose all website files, images, and scripts.
  • Not exporting databases: Addon domains often have associated MySQL databases. Removing the domain does not automatically delete the databases, but if you delete them separately or if the domain name is tied to the database prefix, you may lose data.
  • Removing the wrong domain: Double-check the domain name in the list before clicking Remove, especially if you have many addon domains.
  • Ignoring email accounts: If you had email accounts set up for the addon domain, they will be removed as well. Ensure you have downloaded any important emails.
  • Thinking it frees up disk space immediately: The folder is deleted, but the space may not be reclaimed until the system runs its cleanup process.

Tips

  • Before removing, download a full backup of the addon domain's folder via cPanel's Backup tool or an FTP client.
  • Export any databases using phpMyAdmin – select the database, then click Export and choose the SQL format.
  • If you are unsure whether you will need the domain later, consider just pointing it to a parked page instead of removing it.
  • After removal, verify that the domain no longer resolves to your server by using an online DNS checker.
  • If you have a staging site on the addon domain, move it to a subdomain of your main domain before deletion.

Troubleshooting

  • “Domain not found” error: Refresh the Domains page. If it still doesn't appear, you may have already removed it, or it might be a subdomain of another addon domain – check the main domain list.
  • Removal button is greyed out: This can happen if the addon domain is the primary domain for an email account or if it is used as a redirect target. Remove those dependencies first.
  • Files still exist after removal: Check the File Manager under public_html. If the folder remains, delete it manually, but be careful not to delete files belonging to your main domain.
  • Domain still shows in browser: DNS propagation can take up to 48 hours. Also, clear your browser cache and check with a different network.
  • Cannot log in to cPanel: If you are locked out, contact your hosting provider's support for assistance.

Frequently Asked Questions

Will removing an addon domain delete my main website?

No, removing an addon domain only affects that specific domain and its own document root folder. Your main domain and its files remain untouched.

Can I undo the removal?

No, the action is permanent. You would need to re-add the domain as a new addon domain and restore files from your backup.

What happens to the subdomain that was created for the addon domain?

cPanel automatically creates a subdomain (e.g., addondomain.yourmaindomain.com) when you add an addon domain. Removing the addon domain also removes that subdomain.

Do I need to delete the DNS records myself?

cPanel removes the internal DNS entries on your server. However, if you have external DNS management (e.g., at your registrar), you may need to delete the A record manually.

Will my email accounts on the addon domain be deleted?

Yes, any email accounts associated with the addon domain will be removed. Download important emails before proceeding.

Can I remove an addon domain if it has a database?

Yes, but the database itself is not deleted automatically. You can remove it separately via the MySQL Databases section in cPanel.