Lastly, to delete a document, we use the deleteOne or deleteMany methods. For example, again insert the Peru team and run the following code:
> db.teams.deleteOne({"code": "PER"})
{ "acknowledged" : true, "deletedCount" : 1 }
Cool! Now we are in a good shape to learn about Mongoose and how to integrate our API with MongoDB. Keep reading!!
We recommend that you use a GUI tool to explore your MongoDB data. We use Robo 3T or Robomongo. You can download it from its official page at https://robomongo.org.