code: public boolean removeNode(RiakNode node)
      {
          stateCheck(State.CREATED, State.RUNNING, State.QUEUING);
          boolean removed = false;
          try
          {
              nodeListLock.writeLock().lock();
              removed = nodeList.remove(node);
              for (NodeStateListener listener : stateListeners)
              {
                  node.removeStateListener(listener);
              }
          }
          finally
          {
              nodeListLock.writeLock().unlock();
          }
          nodeManager.removeNode(node);
          return removed;
      }
docs: Removes the provided node from the cluster.
  @param node
  @return true if the node was in the cluster, false otherwise.