Tak boleh nak delete user. Error “userdel: user is currently logged in”.
# su – vivek
# kill -9 -1
Exit the shell and try
# userdel -r vivek
Or you can check for processes from the user using lsof -u username and kill the relevant PIDs. Or pkill -u username or pkill -u uid.