From e925e854f169a2dae8fc7c11a474b7305a94bf7a Mon Sep 17 00:00:00 2001 From: Prakash Kumar <38276550+ThePrakashKumar@users.noreply.github.com> Date: Sat, 11 Jan 2020 20:40:51 +0530 Subject: [PATCH] Update delete-one-document-using-model.findbyidandremove.english.md (#38041) --- ...delete-one-document-using-model.findbyidandremove.english.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/05-apis-and-microservices/mongodb-and-mongoose/delete-one-document-using-model.findbyidandremove.english.md b/curriculum/challenges/english/05-apis-and-microservices/mongodb-and-mongoose/delete-one-document-using-model.findbyidandremove.english.md index ca3f11c5c5..721d16a80b 100644 --- a/curriculum/challenges/english/05-apis-and-microservices/mongodb-and-mongoose/delete-one-document-using-model.findbyidandremove.english.md +++ b/curriculum/challenges/english/05-apis-and-microservices/mongodb-and-mongoose/delete-one-document-using-model.findbyidandremove.english.md @@ -7,7 +7,7 @@ forumTopicId: 301539 ## Description
-Delete one person by the person's _id. You should use one of the methods findByIdAndRemove() or findOneAndRemove(). They are like the previous update methods. They pass the removed document to the cb. As usual, use the function argument personId as the search key. +Delete one person by the person's _id. You should use one of the methods findByIdAndRemove() or findOneAndRemove(). They are like the previous update methods. They pass the removed document to the db. As usual, use the function argument personId as the search key.
## Instructions