ubuntu:users:delete_a_user
Ubuntu - Users - Delete a user
sudo deluser john
WARNING: This will not delete the user's home directory.
If you want to delete the user's home directory when the user is deleted, issue the following command:
sudo deluser --remove-home john
IMPORTANT: If you had previously configured sudo privileges for the user you deleted by editing the /etc/sudoers file, you should remove the relevant line in that file too.
ubuntu/users/delete_a_user.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1