H2S Forum

Command to remove debian user

Here are the commands that you can use to remove or delete any user from the Debian based Linux operating system, server or desktop.

  1. Login to your server with root user.

  2. Use the below command to delete a user in Debian

userdel username
  1. 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