Linux Account Removal

1) lock the account: 
passwd -l

If you ever need to re-enable the account just unlock it:
passwd -u

2) to permanently remove the user just run:
userdel

3) to permanently remove the user  to delete all his files on the system:
userdel -r
  • 23050 Users Found This Useful
Was this answer helpful?