Delete User in Linux
Use userdel command to delete existing user from Linux system.
$ userdel [options] USER_NAME
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