MongoDB and Mongoose - Delete Many Documents with model.remove()

//here is my code at fcc myApp.js
i’m pretty sure is it right but it’s not

ERR: Deleting many items at once should succeed

const removeManyPeople = (done) => {
  const nameToRemove = "Mary";
const query = { name: nameToRemove };
  Model.remove(query, (error, data) => {
    if(error) {
      done(error);
    } else {
      done(null, data)
    }
  });
};

Your project link(s)

boilerplate-mongomongoose - Replit

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

Challenge: MongoDB and Mongoose - Delete Many Documents with model.remove()

Link to the challenge:

Look at the Node console of the replit when the tests are running. I see the following error:

ReferenceError: Model is not defined
    at removeManyPeople (/home/runner/boilerplate-mongomongoose/myApp.js:116:3)
    at /home/runner/boilerplate-mongomongoose/server.js:330:9
    at /home/runner/boilerplate-mongomongoose/node_modules/mongoose/lib/helpers/promiseOrCallback.js:25:16

You are getting this because, you have not assigned a value to Model. The question is, what is Model in your app? Maybe you should think about a model you have already defined instead.