Deleting a user in linux

To delete user in linux first login as root using using su - then provide root password after login use command userdel -r user_name.
userdel command is used to delete ther specified user_name

With userdel -r We delete a user and its home directory and the userĀ“s mail spool.