public void deleteGroup(Group group) throws GroupNotFoundException {
        // Fire the event that announces that a group will be deleted (prior to the fact).
        deleteGroupPreProcess(group);

        // Delete the group.
        provider.deleteGroup(group.getName());

        // Update caches.
        deleteGroupPostProcess(group);
    }
Deletes a group from the system.

@param group the group to delete.
xmppserver/src/main/java/org/jivesoftware/openfire/group/GroupManager.java