How to delete a user Ubuntu Server

This is how to remove / delete a user on Ubuntu from the command line:

sudo userdel theuser

Then delete the user’s home directory:

sudo rm -rf /home/theuser

One thought on “How to delete a user Ubuntu Server

Leave a Reply