userdel Linux Command
Deletes a user account. Use -r to also remove the home directory.
What does userdel do?
Deletes a user account. Use -r to also remove the home directory.
Syntax
userdel [options] usernamePractical example
sudo userdel -r johnRelated User Management
usermodModifies an existing user account (groups, shell, home directory, etc.).
groupaddCreates a new group on the system.
useraddCreates a new user account on the system.
groupdelDeletes an existing group from the system.
passwdChanges the password for a user account.
groupsDisplays all groups the current user is a member of.