Suppose you have removed the add-on domain, say domain.com and if the email accounts still exists on the server. And when you delete the email accounts, you get the error “Account does not exist”. You can follow the steps given below to fix this issue.
1. First, delete the folders and files of that particular add-on domain. They are as follows: /home/username/etc/domain.com /home/username/mail/domain.com 2. Now rename the file 'email_accounts.yaml' and clear the file 'email_accounts.cache'. These files are present in /home/user/.cpanel/: eg: mv /home/user/.cpanel/email_accounts.yaml /home/user/.cpanel/email_accounts.yaml.backup 3. Once this is done, try to log into Cpanel once again. You will not see the specified email accounts again.