User Management
groupdel
Delete a group from the system.
Synopsis
syntax
groupdel [OPTION]... GROUP
Examples
Delete the developers group
sudo groupdel developers
Force delete group
sudo groupdel -f oldteam
Common options
| Flag | Description |
|---|---|
| -f | Force deletion even if it is a user's primary group |
About groupdel
The `groupdel` command delete a group from the system. User management commands handle creation, modification, and deletion of user accounts and groups.
Multi-user access control is a core feature of Linux. These commands are essential for system administrators managing servers, enforcing security policies, and provisioning access for teams.
The command accepts 1 commonly used flag shown above, though the full set of options is available in the man page (`man groupdel`). The 2 examples on this page cover typical real-world usage patterns that you can copy and adapt for your own workflows.
Related commands
More User Management Commands
Other commands in the User Management category