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/