Removing a domain alias from cPanel

Removing an alias stops that hostname being configured as an additional entry to the website on this hosting account. It does not cancel the domain’s registration or automatically clean up DNS hosted by a different provider.

01 Prepare for the change

Confirm which domain is the alias and which is the primary site. Record the shared document root and back up any configuration you might need. If visitors still use the alias, consider a planned redirect before retiring it.

02 Remove a domain alias from cPanel

  1. Open Domains in cPanel and locate the exact alias. Select Manage to review its details.
  2. Use the domain removal action and read the confirmation carefully. Remove the hostname association without deleting the shared website files.
  3. Review public DNS at the authoritative provider and remove or change records only according to your retirement plan. Do not leave a hostname pointing to a service you no longer control.
  4. Review redirects, certificate coverage, application settings and any email addresses that depended on the retired domain. Domain removal can affect more than the visible homepage.

03 Confirm the expected result

Confirm the primary website still loads correctly and the alias behaves as intended, whether that is a redirect elsewhere or no longer being hosted. Check that the shared document root still contains the live site.

04 Example: remove an alias while keeping the primary website online

Confirm that the domain is an alias of an existing site rather than an independent website with its own files. Record the primary hostname and any email or certificate use associated with the alias before removing it.

Removing the hosting alias does not automatically cancel the domain registration or remove DNS records at an external provider. Review those services separately. A domain that still resolves to the server after its alias is removed may show an unexpected default response.

What should I test afterwards?

Check the primary website, its login and important forms. Then test the removed hostname and confirm the result matches your retirement plan. If you intended to redirect visitors to another address, establish and verify that redirect before treating the hostname as retired.

Do not delete the primary document root as part of removing an alias that shares it. When the interface presents a file-removal option, read the scope carefully and keep a backup. Contact us before proceeding if the domain relationship is unclear. Tell us which hostname should remain active and which should stop serving the site, so we can help you protect the correct content.

What if I removed the wrong domain alias?

If the wrong domain was removed, re-add it with the correct shared folder and restore any required DNS or certificate configuration. DNS caches may retain prior results until their TTLs expire. Contact support before deleting folders whose ownership is unclear.

05 Sources and further reading

  • 0 Users Found This Useful
  • cpanel-whm, domains-dns
Was this answer helpful?

Related Articles

Adding a domain alias that shares an existing cPanel website

A domain alias serves an existing website under an additional hostname. It is useful for a...

Adding a separate website domain in cPanel

Add a separate website domain when another registered name should have its own files rather...

Removing a separate website domain from cPanel

Remove an additional hosted domain when its website is being retired or moved away. Removing...

Redirecting an additional cPanel domain to another website

Use a redirect when visitors to an additional domain should be sent to another URL. A redirect...

Redirecting a cPanel subdomain to an external URL

A subdomain redirect is useful when a hostname such as help.example.com should send visitors to...