lib/api/modules/devices.js
function (deviceIdentifier, channelIdentifier) {
      var path;
      if (deviceIdentifier && channelIdentifier) {
        path = this.constructPath(constants.DEVICES, deviceIdentifier, constants.CHANNELS, channelIdentifier);
        return this.Core.DELETE(path);
      } else {
        return this.rejectRequest('Bad Request: A device identifier and a channel identifier are required.');
      }
    }
function (deviceIdentifier, channelIdentifier) {
      var path;
      if (deviceIdentifier && channelIdentifier) {
        path = this.constructPath(constants.DEVICES, deviceIdentifier, constants.CHANNELS, channelIdentifier);
        return this.Core.DELETE(path);
      } else {
        return this.rejectRequest('Bad Request: A device identifier and a channel identifier are required.');
      }
    }
function ( deviceIdentifier , channelIdentifier ) { var path ; if ( deviceIdentifier && channelIdentifier ) { path = this . constructPath ( constants . DEVICES , deviceIdentifier , constants . CHANNELS , channelIdentifier ) ; return this . Core . DELETE ( path ) ; } else { return this . rejectRequest ( 'Bad Request: A device identifier and a channel identifier are required.' ) ; } }
Delete a channel from a device
@param  {String|Integer} deviceIdentifier  A Robin device identifier
@param  {String|Integer} channelIdentifier A Robin channel identifier
@return {Function}                         A Promise
Delete a channel from a device