Easy Tutorial
❮ Linux Comm Whoami Linux Comm Cut ❯

Linux userdel Command

Linux Command Manual

The Linux userdel command is used to delete user accounts.

userdel can delete user accounts and associated files. If no parameters are specified, it only deletes the user account without removing related files.

Syntax

userdel [-r][user account]

Parameter Description:

Example

Delete a user account

# userdel hnlinux

Linux Command Manual

❮ Linux Comm Whoami Linux Comm Cut ❯