deluser
Quick Reference
Command Name:
deluser
Category:
file management
Platform:
Linux/Unix
Basic Usage:
Common Use Cases
- 1
User management
Remove user accounts from the system safely
- 2
Security maintenance
Remove unused or compromised accounts to maintain system security
- 3
Home directory cleanup
Optionally remove user home directories and mail spools
- 4
Group removal
Remove user groups along with user accounts
Syntax
deluser [OPTION]... [FILE]...
Options
| Option | Description |
|---|---|
-l |
Use a long listing format |
-a |
Show hidden entries starting with . |
-h |
Human-readable sizes |
-R |
List subdirectories recursively |
Examples
How to Use These Examples
The examples below show common ways to use the deluser command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.