delgroup
Quick Reference
Command Name:
delgroup
Category:
user management
Platform:
Linux/Unix
Basic Usage:
Common Use Cases
- 1
Group management
Remove groups from the system when they are no longer needed
- 2
Security maintenance
Clean up unused groups to improve system security
- 3
Access control
Remove access privileges for a collection of users at once
- 4
System administration
Manage group structures as part of routine maintenance
Syntax
delgroup [options] GROUP
Options
Option | Description |
---|---|
--system |
Only remove system groups |
--only-if-empty |
Only remove if no user belongs to the group |
--help |
Display help information |
--version |
Display version information |
Examples
How to Use These Examples
The examples below show common ways to use the delgroup
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.