Symptoms
When trying to delete an addon domain, the following error is presented:
Error: The domain userdata file for the domain.tld appears to be missing.
Description
cPanel stores information about domains in the file /var/cpanel/userdata/$username/$domain.tld
, where "$username" is the cPanel username and "$domain.tld" is the domain name. On rare occasions, the configuration files for a specific domain can become corrupt, resulting in this error when removing domains.
Workaround
The account must be restored from a backup containing the missing userdata files, or the domain's cruft entries must be manually removed from the server.
Additional resources
How to restore an account from your server backups
How to use the restorepkg script
How to locate 'cruft' left over from a partially removed account