code: function (req, res) {
      this.model.findOne({'_id': req.params[this.idName]}, function (err, document) {
        if (err) {
          return res.handleError(err);
        }
  
        if (!document) {
          return res.notFound();
        }
  
        document.remove(function (err) {
          if (err) {
            return res.handleError(err);
          }
  
          return res.noContent();
        });
      });
    }
docs: Deletes a document from the DB. The requested document id is read from the
  request parameters by using the {@link CrudController#idName} property.
  @param {IncomingMessage} req - The request message object the id is read from
  @param {ServerResponse} res - The outgoing response object
  @returns {ServerResponse} A NO CONTENT response or NOT FOUND if no document has
  been found for the given id