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
|
1 2 3 4 |
[cse@localhost ~]$ su - Password: [root@localhost ~]# userdel -r manish [root@localhost ~]# |
With userdel -r We delete a user and its home directory and the user“s mail spool.