public void removeOrganizationConfiguration(String orgName,String groupName,boolean checkLegacyMode) throws SMSException, SSOException {
  if ((groupName == null) || groupName.length() == 0) {
    groupName=SMSUtils.DEFAULT;
  }
  String orgdn=DNMapper.orgNameToDN(orgName);
  validateSCM();
  String odn=scm.constructServiceConfigDN(groupName,CreateServiceConfig.ORG_CONFIG_NODE,orgdn);
  CachedSMSEntry cEntry=CachedSMSEntry.getInstance(token,odn);
  if (cEntry.isNewEntry()) {
    return;
  }
  if (checkLegacyMode && ServiceManager.isCoexistenceMode() && groupName.equalsIgnoreCase(SMSUtils.DEFAULT)) {
    OrgConfigViaAMSDK amsdk=new OrgConfigViaAMSDK(token,DNMapper.realmNameToAMSDKName(orgdn),orgdn);
    amsdk.unassignService(serviceName);
  }
  if (!cEntry.isNewEntry()) {
    SMSEntry entry=cEntry.getClonedSMSEntry();
    entry.delete(token);
    cEntry.refresh(entry);
  }
}

public void removeOrganizationConfiguration ( String orgName , String groupName , boolean checkLegacyMode ) throws SMSException , SSOException { if ( ( groupName == null ) || groupName . length ( ) == 0 ) { groupName = SMSUtils . DEFAULT ; } String orgdn = DNMapper . orgNameToDN ( orgName ) ; validateSCM ( ) ; String odn = scm . constructServiceConfigDN ( groupName , CreateServiceConfig . ORG_CONFIG_NODE , orgdn ) ; CachedSMSEntry cEntry = CachedSMSEntry . getInstance ( token , odn ) ; if ( cEntry . isNewEntry ( ) ) { return ; } if ( checkLegacyMode && ServiceManager . isCoexistenceMode ( ) && groupName . equalsIgnoreCase ( SMSUtils . DEFAULT ) ) { OrgConfigViaAMSDK amsdk = new OrgConfigViaAMSDK ( token , DNMapper . realmNameToAMSDKName ( orgdn ) , orgdn ) ; amsdk . unassignService ( serviceName ) ; } if ( ! cEntry . isNewEntry ( ) ) { SMSEntry entry = cEntry . getClonedSMSEntry ( ) ; entry . delete ( token ) ; cEntry . refresh ( entry ) ; } }
deletes the organization ' s group configuration data .
