How to delete a user?
Note
To delete a user in Linux, you typically use the userdel command. Here's how you would do it: sudo userdel username.
Replace the username with the actual username of the user you want to delete. You need to use sudo (or be logged in as root) to have the necessary permissions to delete a user account.
So, the correct command is: userdel username