1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 04:04:57 +02:00
tldr/pages/linux/deluser.md
2021-02-07 16:05:03 -03:00

21 lines
563 B
Markdown

# deluser
> Delete a user from the system.
> Note: all commands must be executed as root.
> More information: <https://manpages.debian.org/adduser/deluser.8.html>.
- 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}}`