Linux Commands Helper
💬 Your AI-powered Linux assistant
groupdel Command - Delete a Group
The groupdel command is used to delete a group from the system. It removes the group entry from the system account files.
Syntax
groupdel [options] group
Examples
groupdel developers
Delete the group named 'developers'.
Notes
- You cannot remove a group that is the primary group of any user.
- Check for files owned by the group before deleting it.
- Use
groupadd
to create new groups.