es5/lib/model/delete.js
function deleteSelf(callback) {
  var _this = this;

  _flowsync2["default"].series([function (done) {
    _this.beforeDelete(done);
  }, function (done) {
    if (_this.constructor.useSoftDelete !== undefined) {
      _this.softDestroy(done);
    } else {
      _this.destroy(done);
    }
  }, function (done) {
    _this.afterDelete(done);
  }], function (errors) {
    callback(errors);
  });
}
function deleteSelf(callback) {
  var _this = this;

  _flowsync2["default"].series([function (done) {
    _this.beforeDelete(done);
  }, function (done) {
    if (_this.constructor.useSoftDelete !== undefined) {
      _this.softDestroy(done);
    } else {
      _this.destroy(done);
    }
  }, function (done) {
    _this.afterDelete(done);
  }], function (errors) {
    callback(errors);
  });
}
function deleteSelf ( callback ) { var _this = this ; _flowsync2 [ "default" ] . series ( [ function ( done ) { _this . beforeDelete ( done ) ; } , function ( done ) { if ( _this . constructor . useSoftDelete !== undefined ) { _this . softDestroy ( done ) ; } else { _this . destroy ( done ) ; } } , function ( done ) { _this . afterDelete ( done ) ; } ] , function ( errors ) { callback ( errors ) ; } ) ; }
Delete the model according to the prescribed strategy.

Named "deleteSelf" because "delete" is a reserved keyword in JS.

@method deleteSelf
@param  {Function} callback
Delete the model according to the prescribed strategy .