code: function destroy (req, res, next) {
      var resource = db.get(name).removeById(utils.toNative(req.params.id)).value()
  
      // Remove dependents documents
      var removable = db._.getRemovable(db.getState())
  
      _.each(removable, function (item) {
        db.get(item.name).removeById(item.id).value()
      })
  
      if (resource) {
        res.locals.data = {}
      }
  
      next()
    }
docs: DELETE /name/:id