Update delete-one-document-using-model.findbyidandremove.english.md (#38041)

This commit is contained in:
Prakash Kumar
2020-01-11 20:40:51 +05:30
committed by Randell Dawson
parent ca592d98b0
commit e925e854f1

View File

@ -7,7 +7,7 @@ forumTopicId: 301539
## Description
<section id='description'>
Delete one person by the person's <code>_id</code>. You should use one of the methods <code>findByIdAndRemove()</code> or <code>findOneAndRemove()</code>. They are like the previous update methods. They pass the removed document to the cb. As usual, use the function argument <code>personId</code> as the search key.
Delete one person by the person's <code>_id</code>. You should use one of the methods <code>findByIdAndRemove()</code> or <code>findOneAndRemove()</code>. They are like the previous update methods. They pass the removed document to the db. As usual, use the function argument <code>personId</code> as the search key.
</section>
## Instructions