public void deleteSites(Set sites) throws AMConsoleException {
  String siteName=null;
  try {
    if ((sites != null) && !sites.isEmpty()) {
      SSOToken token=getUserSSOToken();
      for (Iterator i=sites.iterator(); i.hasNext(); ) {
        siteName=(String)i.next();
        String[] param={siteName};
        logEvent("ATTEMPT_DELETE_SITE",param);
        SiteConfiguration.deleteSite(token,siteName);
        logEvent("SUCCEED_DELETE_SITE",param);
      }
    }
  }
 catch (  ConfigurationException e) {
    String[] params={siteName,e.getMessage()};
    logEvent("SMS_EXCEPTION_DELETE_SITE",params);
    throw new AMConsoleException(getErrorString(e));
  }
catch (  SMSException e) {
    String[] params={siteName,e.getMessage()};
    logEvent("SMS_EXCEPTION_DELETE_SITE",params);
    throw new AMConsoleException(getErrorString(e));
  }
catch (  SSOException e) {
    String[] params={siteName,e.getMessage()};
    logEvent("SSO_EXCEPTION_DELETE_SITE",params);
    throw new AMConsoleException(getErrorString(e));
  }
}

public void deleteSites ( Set sites ) throws AMConsoleException { String siteName = null ; try { if ( ( sites != null ) && ! sites . isEmpty ( ) ) { SSOToken token = getUserSSOToken ( ) ; for ( Iterator i = sites . iterator ( ) ; i . hasNext ( ) ; ) { siteName = ( String ) i . next ( ) ; String [ ] param = { siteName } ; logEvent ( "ATTEMPT_DELETE_SITE" , param ) ; SiteConfiguration . deleteSite ( token , siteName ) ; logEvent ( "SUCCEED_DELETE_SITE" , param ) ; } } } catch ( ConfigurationException e ) { String [ ] params = { siteName , e . getMessage ( ) } ; logEvent ( "SMS_EXCEPTION_DELETE_SITE" , params ) ; throw new AMConsoleException ( getErrorString ( e ) ) ; } catch ( SMSException e ) { String [ ] params = { siteName , e . getMessage ( ) } ; logEvent ( "SMS_EXCEPTION_DELETE_SITE" , params ) ; throw new AMConsoleException ( getErrorString ( e ) ) ; } catch ( SSOException e ) { String [ ] params = { siteName , e . getMessage ( ) } ; logEvent ( "SSO_EXCEPTION_DELETE_SITE" , params ) ; throw new AMConsoleException ( getErrorString ( e ) ) ; } }
deletes a set of sites .
