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