server/src/main/java/com/orientechnologies/orient/server/distributed/OModifiableDistributedConfiguration.java
public List<String> removeServer(final String iNode) {
    synchronized (configuration) {
      final List<String> changedPartitions = new ArrayList<String>();

      for (String clusterName : getClusterNames()) {
        final Collection<String> nodes = getClusterConfiguration(clusterName).field(SERVERS);
        if (nodes != null) {
          for (String node : nodes) {
            if (node.equals(iNode)) {
              // FOUND: REMOVE IT
              nodes.remove(node);
              changedPartitions.add(clusterName);
              break;
            }
          }
        }
      }

      if (!changedPartitions.isEmpty()) {
        incrementVersion();
        return changedPartitions;
      }
    }
    return null;
  }
public List<String> removeServer(final String iNode) {
    synchronized (configuration) {
      final List<String> changedPartitions = new ArrayList<String>();

      for (String clusterName : getClusterNames()) {
        final Collection<String> nodes = getClusterConfiguration(clusterName).field(SERVERS);
        if (nodes != null) {
          for (String node : nodes) {
            if (node.equals(iNode)) {
              // FOUND: REMOVE IT
              nodes.remove(node);
              changedPartitions.add(clusterName);
              break;
            }
          }
        }
      }

      if (!changedPartitions.isEmpty()) {
        incrementVersion();
        return changedPartitions;
      }
    }
    return null;
  }
public List < String > removeServer ( final String iNode ) { synchronized ( configuration ) { final List < String > changedPartitions = new ArrayList < String > ( ) ; for ( String clusterName : getClusterNames ( ) ) { final Collection < String > nodes = getClusterConfiguration ( clusterName ) . field ( SERVERS ) ; if ( nodes != null ) { for ( String node : nodes ) { if ( node . equals ( iNode ) ) { // FOUND: REMOVE IT nodes . remove ( node ) ; changedPartitions . add ( clusterName ) ; break ; } } } } if ( ! changedPartitions . isEmpty ( ) ) { incrementVersion ( ) ; return changedPartitions ; } } return null ; }
Removes a server from the list.<br>
NOTE: It must be executed in distributed database lock.

@param iNode
Server name
@return
Removes a server from the list . <br > NOTE : It must be executed in distributed database lock .