Delete User in Linux

Delete User in Linux

 Delete User in Linux


Use userdel command to delete existing users from the Linux system.

Syntax:

$ userdel [options]  USER_NAME

Example:

The 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
Reactions

Post a Comment

0 Comments

close