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
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
AFAIR, userdel command has special option for removing home directory (-r), so you may even use only one command.