How to remove a user from the server?

Asked

Viewed 38 times

1

I use an Ubuntu server 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?

1 answer

3

The userdel this is what it’s for:

$> sudo userdel git

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

$> sudo userdel -r git

Browser other questions tagged

You are not signed in. Login or sign up in order to post.