find(undefined) matches nothing instead of all

You may not want that 'find(req.query.id).delete' deletes all if no id
is given in the parameters.