ubuntu destroy session user code example Example 1: ubuntu remove user sudo deluser <username> Example 2: delete user linux deluser *userToDelete*