deluser
Delete a user from the system. More information: <https://manpages.debian.org/latest/adduser/deluser.html>.
Install
- All systems
-
curl cmd.cat/deluser.sh
- Debian
-
apt-get install adduser - Ubuntu
-
apt-get install adduser - Kali Linux
-
apt-get install adduser - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install adduser - Raspbian
-
apt-get install adduser
Delete a user from the system. More information: <https://manpages.debian.org/latest/adduser/deluser.html>.
-
Remove a user:
sudo deluser username -
Remove a user and their home directory:
sudo deluser --remove-home username -
Remove a user and their home, but backup their files into a `.tar.gz` file in the specified directory:
sudo deluser --backup-to path/to/backup_directory --remove-home username -
Remove a user, and all files owned by them:
sudo deluser --remove-all-files username
© tl;dr; authors and contributors