code: function (req, res) {
          var id = req.params.id;
          {modelName}.findByIdAndRemove(id, function (err, {name}) {
              if (err) {
                  return res.status(500).json({
                      message: 'Error when deleting the {name}.',
                      error: err
                  });
              }
              return res.status(204).json();
          });
      }
docs: {controllerName}.remove()