How To Delete sudo Users on a CentOS 7 Server?

HostStud

Administrator
Staff member
You can delete the user without deleting any of their files and folders, as root run:
# userdel username

username is the user you have created.

You can delete the user's files with the user account by running this command as root:
# userdel -r username
 
Top