public void removeSubConfig(String subConfigName) throws SMSException, SSOException {
  validateServiceConfigImpl();
  subConfigName=SMSSchema.unescapeName(subConfigName);
  String sdn="ou=" + subConfigName + ","+ sc.getDN();
  ServiceConfigManagerImpl scmImpl=ServiceConfigManagerImpl.getInstance(token,getServiceName(),getVersion());
  ServiceConfigImpl sConfigImpl=sc.getSubConfig(token,subConfigName);
  if (sConfigImpl != null) {
    ServiceConfigImpl.deleteInstance(token,scmImpl,null,sdn,"/",sConfigImpl.getGroupName(),(getComponentName() + "/" + SMSSchema.escapeSpecialCharacters(subConfigName)),false,ss);
  }
  CachedSMSEntry cEntry=CachedSMSEntry.getInstance(token,sdn);
  if (cEntry.isDirty()) {
    cEntry.refresh();
  }
  SMSEntry entry=cEntry.getClonedSMSEntry();
  entry.delete(token);
  cEntry.refresh(entry);
  CachedSubEntries cse=CachedSubEntries.getInstance(token,sc.getDN());
  cse.remove(subConfigName);
}

public void removeSubConfig ( String subConfigName ) throws SMSException , SSOException { validateServiceConfigImpl ( ) ; subConfigName = SMSSchema . unescapeName ( subConfigName ) ; String sdn = "ou=" + subConfigName + "," + sc . getDN ( ) ; ServiceConfigManagerImpl scmImpl = ServiceConfigManagerImpl . getInstance ( token , getServiceName ( ) , getVersion ( ) ) ; ServiceConfigImpl sConfigImpl = sc . getSubConfig ( token , subConfigName ) ; if ( sConfigImpl != null ) { ServiceConfigImpl . deleteInstance ( token , scmImpl , null , sdn , "/" , sConfigImpl . getGroupName ( ) , ( getComponentName ( ) + "/" + SMSSchema . escapeSpecialCharacters ( subConfigName ) ) , false , ss ) ; } CachedSMSEntry cEntry = CachedSMSEntry . getInstance ( token , sdn ) ; if ( cEntry . isDirty ( ) ) { cEntry . refresh ( ) ; } SMSEntry entry = cEntry . getClonedSMSEntry ( ) ; entry . delete ( token ) ; cEntry . refresh ( entry ) ; CachedSubEntries cse = CachedSubEntries . getInstance ( token , sc . getDN ( ) ) ; cse . remove ( subConfigName ) ; }
removes the service sub - configuration .
