userdel - Deletes a user account from system
Follow @ggarronTo erase an existing user account, or login from a Linux machine, you can use userdel, be sure to use this with care, as its actions can not be undone.
Syntax
userdel [options] LOGIN
Some of its options are:
- -r remove user account
- -f force user removal, even if the user is still logged, and removes its home and mail spool even if they are used by another user
Example
userdel -r user
Be sure to read the man page of userdel
Related pages