public static boolean deleteServerInstance(SSOToken ssoToken,String instanceName) throws SMSException, SSOException {
  boolean deleted=false;
  ServiceConfig cfg=getServerConfig(ssoToken,instanceName);
  if (cfg != null) {
    ServiceConfig sc=getRootServerConfigWithRetry(ssoToken);
    if (sc != null) {
      sc.removeSubConfig(instanceName);
      deleted=true;
    }
  }
  return deleted;
}

public static boolean deleteServerInstance ( SSOToken ssoToken , String instanceName ) throws SMSException , SSOException { boolean deleted = false ; ServiceConfig cfg = getServerConfig ( ssoToken , instanceName ) ; if ( cfg != null ) { ServiceConfig sc = getRootServerConfigWithRetry ( ssoToken ) ; if ( sc != null ) { sc . removeSubConfig ( instanceName ) ; deleted = true ; } } return deleted ; }
deletes a server instance .
