How to Delete a User in Kali Linux?
Note: Right click on the Desktop, and then Click on 'Open in Terminal'. After that, follow the steps below:-
Step 1: To list all users:-
cut -d: -f1 /etc/passwd
Step 2: To Delete User:-
userdel -r username
-r means delete files in user's home directory along with home directory itself.
Note: If you get message like:-
user your_username is currently used by the process process_number
you have to kill the process first by command below:-
kill -9 process_number
It's done
Thanks for watching, please like and subscribe
==============================================
https://www.facebook.com/HowtoTutorialsByAmit/