deluser
Delete a user from the system.
Note: all commands must be executed as root.
deluser {username}
- Remove a user and their home directory:
deluser --remove-home {username}
- Remove a user and their home, but backup their files into a `.tar.gz` file in the specified directory:
deluser --backup-to {path/to/backup_directory} --remove-home {username}
- Remove a user, and all files owned by them:
deluser --remove-all-files {username}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).