When trying to remove an account, you get the error:
You do not have a user named “user”
If the account is partially removed and has data in /var/cpanel/userdata/ missing, the account cannot be removed/terminated.
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.
- Change the group of the folder.
chgrp foxtrot /var/cpanel/userdata/foxtrot