The e-mail address email@example.com deleted successfully.
Sorry, you do not have access to the domain mydomain.com
The error message is displayed when you delete an email account of a domain from cPanel >> â€˜Email Accountsâ€™ that is either shifted under another users account OR usually happens when a domain is swapped from add-on domain to main domain OR vice-versa. You cannot delete an email account from cPanel, and in this case, you have to manually remove the email account entries for domain from the existing account.
The files you need to remove the entries from are
The directory that need to be removed is
Note: ‘user’ is the one who owns the domain “mydomain.com”