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