
The userdel command modifies the system account files, deleting all entries that refer to login. The named user must exist.
-r: Remove the whole home directory and the mail spool of the specified account. Files located in other directories will have to be searched for and deleted manually.
# userdel -r <user-name>
-f: This option is used to force the removal of files, even if not owned by the account.
# userdel -f <user-name>


