2021-02-07 22:05:03 +03:00
|
|
|
# deluser
|
|
|
|
|
|
|
|
> Delete a user from the system.
|
|
|
|
> Note: all commands must be executed as root.
|
2021-04-17 15:19:41 +03:00
|
|
|
> More information: <https://manpages.debian.org/latest/adduser/deluser.html>.
|
2021-02-07 22:05:03 +03:00
|
|
|
|
|
|
|
- Remove a user:
|
|
|
|
|
|
|
|
`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}}`
|