Go2Linux | Linux Operating System

A site dedicated to: Linux Operating System

userdel - Deletes a user account from system

Date: 2009-01-06 00:00:00 -0400

To erase an existing user account, or login from a Linux machine, you can use userdel, be sure to use this with care, as its actions can not be undone.

Syntax

userdel [options] LOGIN

Some of its options are:

  • -r remove user account
  • -f force user removal, even if the user is still logged, and removes its home and mail spool even if they are used by another user

Example

userdel -r user

Be sure to read the man page of userdel

Related pages

useradd usermod

If you liked this article please share it.

powered by TinyLetter

If you want to contact me in any other way, please use the contact page.