1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 23:02:07 +02:00
tldr/pages/linux/deluser.md

20 lines
512 B
Markdown

# deluser
> Delete a user from the system.
> More information: <https://manned.org/deluser>.
- 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}}`