How to remove a user from the server? [closed]

1

I use a server with Ubuntu and installed Git to share code remotely.

I created a Git user with the command:

$ sudo adduser git

What command should I use to remove a user?

    
asked by anonymous 16.11.2017 / 13:30

1 answer

3

userdel is for this:

$> sudo userdel git

If you want to remove the user's home folder, use the -r

$> sudo userdel -r git
16.11.2017 / 13:33