userdel - delete a user account
# userdel [-r] <login>
This program deletes a user account in the system.
This program must be run as root.
-r
, --remove
: Remove the home directory for this user if the directory exists./etc/passwd
- user information (such as UID and GID) in this file is deleted./home/
- user home directory is deleted if the -r
flag is specified.# userdel alice
# userdel -r alice
# userdel --remove alice