mongoose remove not working [findByIdAndRemove]

Solution 1:

It seems a little strange that you're looking for your mongoose model in the urlParams. I would have expected something more like

function remove(req, res, model, next){
    model.findByIdAndRemove(req.params.id, function(err)....
}