Deleting Sudo-enabled Users in Linux
Please use the “Print” function at the bottom of the page to create a PDF.
For Cloud Servers, VPS, Virtual Server, Dedicated Servers and Server Power Deals
To delete a sudo-enabled user in Linux, do the following:
Log in as the root user on the desired server.
To delete a user and its home directory, enter the following command:
[root@localhost ~]# userdel -r USERNAME
Example
[root@localhost ~]# userdel -r johnsmith
The user is now deleted.