centos remove a user code example
Example 1: delete user centos 7 command line
sudo userdel username
or
sudo userdel -r username
Example 2: delete user linux
deluser *userToDelete*
sudo userdel username
or
sudo userdel -r username
deluser *userToDelete*