Show TOC

Deleting GroupsLocate this document in the navigation structure

Prerequisites

You have imported the required interfaces and gotten the required factories.

More information: User Management Functions for Groups .

Context

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.

Procedure

  1. Use the IGroup interface to get the group object.
  2. Use the deleteGroup() method to delete the group.

Example

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.
        }
}