public void deleteServers(Set servers) throws AMConsoleException {
  if (servers.contains(SystemProperties.getServerInstanceName())) {
    throw new AMConsoleException(getLocalizedString("exception.cannot.delete.this.server.instance"));
  }
  String serverName=null;
  try {
    if ((servers != null) && !servers.isEmpty()) {
      SSOToken token=getUserSSOToken();
      for (Iterator i=servers.iterator(); i.hasNext(); ) {
        serverName=(String)i.next();
        String[] param={serverName};
        logEvent("ATTEMPT_DELETE_SERVER",param);
        ServerConfiguration.deleteServerInstance(token,serverName);
        logEvent("SUCCEED_DELETE_SERVER",param);
      }
    }
  }
 catch (  SMSException e) {
    String[] params={serverName,e.getMessage()};
    logEvent("SMS_EXCEPTION_DELETE_SERVER",params);
    throw new AMConsoleException(getErrorString(e));
  }
catch (  SSOException e) {
    String[] params={serverName,e.getMessage()};
    logEvent("SSO_EXCEPTION_DELETE_SERVER",params);
    throw new AMConsoleException(getErrorString(e));
  }
}

public void deleteServers ( Set servers ) throws AMConsoleException { if ( servers . contains ( SystemProperties . getServerInstanceName ( ) ) ) { throw new AMConsoleException ( getLocalizedString ( "exception.cannot.delete.this.server.instance" ) ) ; } String serverName = null ; try { if ( ( servers != null ) && ! servers . isEmpty ( ) ) { SSOToken token = getUserSSOToken ( ) ; for ( Iterator i = servers . iterator ( ) ; i . hasNext ( ) ; ) { serverName = ( String ) i . next ( ) ; String [ ] param = { serverName } ; logEvent ( "ATTEMPT_DELETE_SERVER" , param ) ; ServerConfiguration . deleteServerInstance ( token , serverName ) ; logEvent ( "SUCCEED_DELETE_SERVER" , param ) ; } } } catch ( SMSException e ) { String [ ] params = { serverName , e . getMessage ( ) } ; logEvent ( "SMS_EXCEPTION_DELETE_SERVER" , params ) ; throw new AMConsoleException ( getErrorString ( e ) ) ; } catch ( SSOException e ) { String [ ] params = { serverName , e . getMessage ( ) } ; logEvent ( "SSO_EXCEPTION_DELETE_SERVER" , params ) ; throw new AMConsoleException ( getErrorString ( e ) ) ; } }
deletes a set of servers .
