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 to “How to delete a user Ubuntu Server”

Leave a Reply