cPanel Sunucularda Silinmeyen Kullanıcıyı Silme

Sometimes, certain users cannot be deleted in WHM from the “Terminate Account” section. As an error;

Cannot remove account with error - You do not have a user named “user”

it says.

The desired user can be permanently deleted using the commands below.

First, establish an SSH connection to the server as root. Find the username of the user that cannot be deleted. Adjust the username fields in the section below accordingly. Then, execute the 3 commands below one by one in order. If the username is abcdef, write abcdef in the username places.

mkdir /var/cpanel/userdata/username
chown root:**username**/var/cpanel/userdata/username&& chmod 750 /var/cpanel/userdata/username
/scripts/removeacct username --force