how to remove a user linux code example Example 1: ubuntu remove user sudo deluser <username> Example 2: remove user centos 7 userdel -r mynewuser