public static void deleteResourceBundle(SSOToken token,String rbName,String locale) throws SMSException, SSOException {
  if (rbName == null) {
    return;
  }
  ServiceConfigManager scm=new ServiceConfigManager(token,LOCALE_SERVICE,VERSION);
  ServiceConfig globalConfig=scm.getGlobalConfig(null);
  if (locale == null) {
    try {
      globalConfig.removeSubConfig(rbName);
    }
 catch (    SMSException se) {
      throw new MissingResourceException(_bundle.getString("isResourceBundleMsg1") + rbName + ". "+ se.getMessage(),_bundle.getString("isResourceBundleMsg2"),_bundle.getString("isResourceBundleMsg3"));
    }
  }
 else {
    ServiceConfig rbConfig=globalConfig.getSubConfig(rbName);
    if (rbConfig == null) {
      throw new MissingResourceException(_bundle.getString("isResourceBundleMsg0") + rbName + ". ",_bundle.getString("isResourceBundleMsg2"),_bundle.getString("isResourceBundleMsg3"));
    }
 else {
      rbConfig.removeSubConfig(locale);
    }
  }
}

public static void deleteResourceBundle ( SSOToken token , String rbName , String locale ) throws SMSException , SSOException { if ( rbName == null ) { return ; } ServiceConfigManager scm = new ServiceConfigManager ( token , LOCALE_SERVICE , VERSION ) ; ServiceConfig globalConfig = scm . getGlobalConfig ( null ) ; if ( locale == null ) { try { globalConfig . removeSubConfig ( rbName ) ; } catch ( SMSException se ) { throw new MissingResourceException ( _bundle . getString ( "isResourceBundleMsg1" ) + rbName + ". " + se . getMessage ( ) , _bundle . getString ( "isResourceBundleMsg2" ) , _bundle . getString ( "isResourceBundleMsg3" ) ) ; } } else { ServiceConfig rbConfig = globalConfig . getSubConfig ( rbName ) ; if ( rbConfig == null ) { throw new MissingResourceException ( _bundle . getString ( "isResourceBundleMsg0" ) + rbName + ". " , _bundle . getString ( "isResourceBundleMsg2" ) , _bundle . getString ( "isResourceBundleMsg3" ) ) ; } else { rbConfig . removeSubConfig ( locale ) ; } } }
deletes the specified resourcebundle from the directory .
