groupdel — Delete a group
The groupdel command modifies the system account files, deleting all entries that refer to group.
# groupdel mygrp — Remove all entries about the mygrp.
- The named group must exist.
- You may not remove the primary group of any existing user. You must remove the user before you remove the group.
Read: man groupdel