Difference between deleteMany() and remove()

I came here from the Chapter 3: Creating and Manipulating Documents (Deleting Documents and Collections) episode of M001 MongoDB basics course. I wanted to know the difference between the use of the remove() method in place of the deleteMany()

As you can see in the documentation, remove() is deprecated.