Show/Hide Toolbars

The following sample deletes a group account record with a given unique key.

Note: Deleting a group removes users from the group; however the user accounts are not deleted from the system. Also see the Administrator help, Deleting a Group, topic for Scenarios that Prevent Deletion.

Code Snippet

//for this sample it is assumed that a group record exists with a unique key String equal to uniqueKey

protected GroupAccountRepository groupAccountRepository;

public void test_deleteGroupAccount() throws Exception {

groupAccountRepository.deleteGroupAccount(uniqueKey);

}