You have imported the required interfaces and gotten the required factories.
More information: User Management Functions for Groups .
This procedure describes how to delete a group programmatically. Use this procedure if you cannot use the existing user administration tools to perform group deletion and need to customize your tools to delete groups programmatically.
This example gets the group object, demo_group, then deletes it.
public static void deleteGroup(String groupUniqueName) { try { // Get the group. // Delete the group. } catch (NoSuchGroupException nsgex) { // TODO: Handle NoSuchGroupException. } catch (UMException umex) { // TODO: Handle UMException. } catch (UMRuntimeException umrex) { // TODO: Handle UMRuntimeException. } }