Linux userdel Command
The Linux userdel command is used to delete user accounts.
userdel can delete user accounts and related files. If no arguments are given, only the account is deleted, not the related files.
Syntax
userdel [-r][用户帐号]
Parameter Description:
- -r Delete the user's login directory and all files in it.
Example
Delete a user account
# userdel hnlinux
Linux Command Reference