Here are the commands that you can use to remove or delete any user from the Debian based Linux operating system, server or desktop.
Login to your server with root user.
Use the below command to delete a user in Debian
- If you want to also delete the user directory along with its all files and folder then simply user flag with the above command:
Which will be like this
userdel -r username
Note: Replace username with the user you want to delete