How to resolve the domain already exists error when adding addon domain

The error occurs when a domain exists within an account as either the primary domain, addon domain, or parked domain. The domain will have to be removed from the account it is on before it can be added to the intended account. This guide can be used to resolve the error โ€œuserdata file for the [&hell

Last updated 30 Nov 2026Also in: Web Hosting, cPanel

The error occurs when a domain exists within an account as either the primary domain, addon domain, or parked domain. The domain will have to be removed from the account it is on before it can be added to the intended account.

This guide can be used to resolve the error โ€œuserdata file for the โ€œdomain.comโ€ domain appears to be missing.โ€ as well.

First, confirm who owns the domain using the command below.

/scripts/whoowns domain.com

If the cPanel username returned is the account you intend to have the domain added to, we will need to manually remove currently existing records for the domain to avoid the error.

Steps

Kill DNS for the domain

/scripts/killdns domain.com

Search for the domain in cpanel/users directory

grep domain.com /var/cpanel/users/*

In the files that will be listed, remove lines that have domain.com

Search for the domain in cpanel/userdata directory

grep -R domain.com /var/cpanel/userdata/*

In the files that will be listed, remove sections that have the domain name in it.

Update userdomains

/scripts/updateuserdomains

Rebuld httpd configurations

/scripts/rebuildhttpdconf

Restart the webserver.

systemctl restart httpd

All Done.

If you need to add the addon domain, you can now add it. Then delete it. Then add it again

NB: Replace domain.com with actual domain

cpanel

Was this article helpful?