lib/pkgcloud/rackspace/loadbalancer/client/nodes.js
function (loadBalancer, nodes, callback) {
    var self = this,
        loadBalancerId =
          loadBalancer instanceof lb.LoadBalancer ? loadBalancer.id : loadBalancer;

    // check for valid inputs
    if (!nodes || nodes.length === 0 || !Array.isArray(nodes)) {
      throw new Error('nodes must be an array of Node or nodeId');
    }

    // support passing either the javascript object or an array of ids
    var list = nodes.map(function (item) {
      return (typeof item === 'object') ? item.id : item;
    });

    self._request({
      path: urlJoin(_urlPrefix, loadBalancerId, 'nodes', '?id=' + list.join('&id=')),
      method: 'DELETE'
    }, function (err) {
      callback(err);
    });
  }
function (loadBalancer, nodes, callback) {
    var self = this,
        loadBalancerId =
          loadBalancer instanceof lb.LoadBalancer ? loadBalancer.id : loadBalancer;

    // check for valid inputs
    if (!nodes || nodes.length === 0 || !Array.isArray(nodes)) {
      throw new Error('nodes must be an array of Node or nodeId');
    }

    // support passing either the javascript object or an array of ids
    var list = nodes.map(function (item) {
      return (typeof item === 'object') ? item.id : item;
    });

    self._request({
      path: urlJoin(_urlPrefix, loadBalancerId, 'nodes', '?id=' + list.join('&id=')),
      method: 'DELETE'
    }, function (err) {
      callback(err);
    });
  }
function ( loadBalancer , nodes , callback ) { var self = this , loadBalancerId = loadBalancer instanceof lb . LoadBalancer ? loadBalancer . id : loadBalancer ; // check for valid inputs if ( ! nodes || nodes . length === 0 || ! Array . isArray ( nodes ) ) { throw new Error ( 'nodes must be an array of Node or nodeId' ) ; } // support passing either the javascript object or an array of ids var list = nodes . map ( function ( item ) { return ( typeof item === 'object' ) ? item . id : item ; } ) ; self . _request ( { path : urlJoin ( _urlPrefix , loadBalancerId , 'nodes' , '?id=' + list . join ( '&id=' ) ) , method : 'DELETE' } , function ( err ) { callback ( err ) ; } ) ; }
client.removeNodes

@description remove an array of nodes or nodeIds from a load balancer

@param {Object}          loadBalancer      the loadBalancer or loadBalancerId
@param {Array}           nodes             the nodes or nodeIds to remove
@param {function}        callback
client . removeNodes