ubuntu remove user from sudo code example Example 1: ubuntu remove user sudo deluser <username> Example 2: remove user from sudoers sudo deluser USERNAME sudo