delete user centos 7 code example
Example 1: delete user centos 7 command line
sudo userdel username
or
sudo userdel -r username
Example 2: remove user centos 7
userdel -r mynewuser
sudo userdel username
or
sudo userdel -r username
userdel -r mynewuser