From 38ea106457eca8a77313f991b01507577a380666 Mon Sep 17 00:00:00 2001 From: Louis Chatriot Date: Thu, 11 Feb 2016 12:23:44 +0100 Subject: [PATCH] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 92aea4a..7f30b65 100755 --- a/README.md +++ b/README.md @@ -577,6 +577,10 @@ db.remove({ system: 'solar' }, { multi: true }, function (err, numRemoved) { // numRemoved = 3 // All planets from the solar system were removed }); + +// Removing all documents with the 'match-all' query +db.remove({}, { multi: true }, function (err, numRemoved) { +}); ``` ### Indexing