# Depriciated stuff in mongodb course

**URL:** <https://forum.freecodecamp.org/t/depriciated-stuff-in-mongodb-course/487911>\
**Category:** freeCodeCamp Contributors\
**Tags:** contributing\
**Created:** [December 7, 2021, 12:15pm UTC](https://forum.freecodecamp.org/t/depriciated-stuff-in-mongodb-course/487911 "2021-12-07T12:15:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![volcareso](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/volcareso/32/241119_2.png) [@volcareso](https://forum.freecodecamp.org/u/volcareso)\
**Post date:** [December 7, 2021, 12:15pm UTC](https://forum.freecodecamp.org/t/depriciated-stuff-in-mongodb-course/487911/1 "2021-12-07T12:15:03Z")

</div>

**Tell us what’s happening:**  
Model.remove() is depriciated

**Your project link(s)**

solution: [https://replit.com/@volcareso/boilerplate-mongomongoose](https://replit.com/@volcareso/boilerplate-mongomongoose)

**Your browser information:**

User Agent is: `Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36`

**Challenge:** Delete Many Documents with model.remove()

**Link to the challenge:**

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/back-end-development-and-apis/mongodb-and-mongoose/delete-many-documents-with-model-remove)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![kevinSmith](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevinsmith/32/72934_2.png) [@kevinSmith](https://forum.freecodecamp.org/u/kevinSmith)\
**Post date:** [December 7, 2021, 3:28pm UTC](https://forum.freecodecamp.org/t/depriciated-stuff-in-mongodb-course/487911/2 "2021-12-07T15:28:34Z")

</div>

As libraries evolve, I would suspect that there will be deprecated things that pop up. It’s not always a terrible thing - depending on how long ago the deprecation took place, etc. People may still be using the deprecated method in a lot of places. Remember that “deprecated” only refers to the new versions of the library - it is still in use in older versions.

This particular one, it seems to me, is a very simple change that would take someone a couple of seconds to figure out and correct.

I haven’t done these lessons - they didn’t exist when I did FCC. Does it require you to use a specific version of the package?

---

<div class="post-metadata">

**Author:** ![Sky020](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/sky020/32/128093_2.png) [@Sky020](https://forum.freecodecamp.org/u/Sky020)\
**Post date:** [December 7, 2021, 3:42pm UTC](https://forum.freecodecamp.org/t/depriciated-stuff-in-mongodb-course/487911/3 "2021-12-07T15:42:46Z")

</div>

Welcome there,

As mentioned by @kevinSmith , you are asked to install a specific version of Mongoose: [https://www.freecodecamp.org/learn/back-end-development-and-apis/mongodb-and-mongoose/install-and-set-up-mongoose](https://www.freecodecamp.org/learn/back-end-development-and-apis/mongodb-and-mongoose/install-and-set-up-mongoose)

As such, the method is deprecated, but not in the old version.

Hope this clarifies

---

<div class="post-metadata">

**Author:** ![kevinSmith](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevinsmith/32/72934_2.png) [@kevinSmith](https://forum.freecodecamp.org/u/kevinSmith)\
**Post date:** [December 7, 2021, 3:49pm UTC](https://forum.freecodecamp.org/t/depriciated-stuff-in-mongodb-course/487911/4 "2021-12-07T15:49:51Z")

</div>

Yeah, I think it’s going to be impossible to constantly update lessons. In cases where it is a major breaking change or is a very old change, it might be worth looking into. But in this case, it is such a minor change, I don’t know if it is worth the effort.

But thank you, @volcareso, for being observant and taking the time to report it.

I don’t know, I don’t think we should do anything in this case, but I’m just one vote.

---

<div class="post-metadata">

**Author:** ![volcareso](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/volcareso/32/241119_2.png) [@volcareso](https://forum.freecodecamp.org/u/volcareso)\
**Post date:** [December 9, 2021, 2:25pm UTC](https://forum.freecodecamp.org/t/depriciated-stuff-in-mongodb-course/487911/5 "2021-12-09T14:25:25Z")

</div>

I used the boiler plate provided :l

---

<div class="post-metadata">

**Author:** ![volcareso](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/volcareso/32/241119_2.png) [@volcareso](https://forum.freecodecamp.org/u/volcareso)\
**Post date:** [December 9, 2021, 2:30pm UTC](https://forum.freecodecamp.org/t/depriciated-stuff-in-mongodb-course/487911/6 "2021-12-09T14:30:09Z")

</div>

I used the specific versions but it’s not working

---

<div class="post-metadata">

**Author:** ![mmdarshed](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/mmdarshed/32/240480_2.png) [@mmdarshed](https://forum.freecodecamp.org/u/mmdarshed)\
**Post date:** [December 11, 2021, 8:38am UTC](https://forum.freecodecamp.org/t/depriciated-stuff-in-mongodb-course/487911/7 "2021-12-11T08:38:59Z")

</div>

I have checked your package.json file

Try providing a caret symbol for both mongodb and mongoose so it fixes the issues by looking into other minor updates.

It should work then.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [June 11, 2022, 8:39pm UTC](https://forum.freecodecamp.org/t/depriciated-stuff-in-mongodb-course/487911/8 "2022-06-11T20:39:55Z")

</div>

Closed on June 11, 2022, 8:39pm UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
