Symptoms
When trying to remove an account, you get the error:
You do not have a user named “user”
Description
If the account is partially removed and has data in /var/cpanel/userdata/ missing, the account cannot be removed/terminated.
Workaround
The cPanel account's userdata folder needs to be created, and the group needs to be set. In the following steps, replace foxtrot with the username you're trying to remove.
- Create the directory.
mkdir /var/cpanel/userdata/foxtrot
- Change the group of the folder.
chgrp foxtrot /var/cpanel/userdata/foxtrot