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