Linux – Delete User Account Only (+Home Directory)

Posted by

Login as Root User and run the following command, below command will delete the user from the system.

sudo userdel USER-NAME

However the above command will keep the user’s home directory. If you also want to delete user’s home directory along with the user the use the following command.

sudo deluser -r USER-NAME

Leave a Reply

Your email address will not be published. Required fields are marked *