Delete Linux User Account

If we want to delete user account, use userdel command.

Syntax:

userdel [options] LOGIN

Example:

Delete aaccount k2admin

userdel k2admin

Options:

Option Description
f force removal of files, even if not owned by user
r remove home directory and mail spool
Z remove SELinux user from SELinux user mapping
Powered by k2schools
Skip to toolbar