Debian Delete User
This is how to Debian Delete User.
Here is two different methods on delete user in Debian. One will keep the users home directory. The other will delete the use and the home directory.
Debian Delete User – Method 1
In this example we will delete the user John. And we will keep his home directory. Because he had some interesting files in there. No, seriously there could be a thousand reasons to keep his home directory.
root@debian:/home# deluser john
Removing user `john’ …
Warning: group `john’ has no more members.
Done.
Debian Delete User – Method 2
In this example we will delete the user John and his home directory. We just want to ged rid of it all.
Here is how you do it.
root@web:/home# deluser –remove-home john
Looking for files to backup/remove …
Removing files …
Removing user `john’ …
Warning: group `john’ has no more members.
Done.
Now everything is gone. The user and his entire home directory.
So that is how you delete users in Debian.
Happy deleting!