Deleting Documents with the Remove,DeleteOne, and DeleteMany ...
I'mtryingtodeleteadocumentofacollectionwithitsObjectId(_id)butIdon'tknowexactlywhatI'mdoingwrong.,Youcanuseaquerytoremoveallmatchingdocuments.varquery={name:'John'};db.collection.remove(query);,Iwanttohaveadailyjobthatrunsanddeletesalldocumentsby...。參考影片的文章的如下: