The Groupdel command
The groupdel command modifies the system account files, deleting all entries which refer to the group. The named groups have to be existing. Whole the filesystems should be manualy checked to ensure which no one of the files remain with the named group as the file group ID.
Syntax
groupdel [ group ]
group - name of the group
Note: The main group of any existing user might not be removed. But the user must be removed before removing the group.
Associated files to be updated whenever the groupdel command is used are
/etc/group - group information
/etc/gshadow - secure group information
Practice
# groupdel dummy1
# groupdel dummy2
# groupdel dummy3
The given command will delete groups dummy1, dummy2 and dummy3.