tldr/pages/linux/userdel.md

22 lines
448 B
Markdown
Raw Normal View History

2014-03-23 23:57:36 +00:00
# userdel
2021-02-07 19:05:03 +00:00
> Remove a user account or remove a user from a group.
> Note: all commands must be executed as root.
> More information: <https://manned.org/userdel>.
2014-03-23 23:57:36 +00:00
2021-02-07 19:05:03 +00:00
- Remove a user:
2014-03-23 23:57:36 +00:00
2021-02-07 19:05:03 +00:00
`userdel {{name}}`
- Remove a user along with their home directory and mail spool:
`userdel --remove {{name}}`
- Remove a user from a group:
`userdel {{name}} {{group}}`
- Remove a user in other root directory:
`userdel --root {{path/to/other/root}} {{name}}`