1. Home
  2. Linux
  3. Linux User and Group
  4. Linux – userdel

Linux – userdel

Delete User in Linux

Use userdel command to delete existing user from Linux system.

Syntax:

$ userdel [options]  USER_NAME

Example:

Below command will delete the user myuser from your system but keep the home directory.

$ userdel myuser

Use -r or –remove to remove the home directory with content also.

$ userdel --remove myuser
Was this article helpful to you? Yes No
Advertisement