So, looking to delete a user from Ubuntu linux?
Run the following command to delete the user:
sudo userdel username
Please note, deleting the user doesn’t delete their home folder. So you will need to decide if you want to retain it or delete it as well.
Run the following command to delete the users home folder:
sudo rm -r /home/username/
Matt is an Internet Specialist for a multinational franchise. Matt has lived and worked in Hawaii, Chicago, South Florida and currently resides outside of Atlanta. He enjoys his hobbies including: Fountain Pens, Wetshaving, Clocks, Antiques & Coffee. He even roasts his own coffee weekly.