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