userdel

Name

userdel -- delete a user account and related files

Synopsis

userdel [-r] login

Description

Delete the user account named login. If there is also a group named login, this command may delete the group as well, or may leave it alone. If the user named login does not exist or is currently logged in, userdel shall issue a diagnostic message and exit with a non-zero exit status.

The userdel command is a system administration utility, see Path For System Administration Utilities.

Options

-r 

removes files in the user's home directory along with the home directory itself. Files located in other file system will have to be searched for and deleted manually.