Definition:
- delete existing user
- doesnt remove home directory by default
- when user has no running processes
- Usually use deluser command instead
Synopsis:
userdel [options] LOGIN
List of options:
- …
-r, --remove
- Files in the user’s home directory will be removed along with the home directory itself and the user’s mail spool.
- Files located in other file systems will have to be searched for and deleted manually.
- The mail spool is defined by the MAIL_DIR variable in the login.defs file.