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. So you must remove the user before removing the group.
Read: man groupdel