...
In the table view, there is also the possibility to select the checkboxes before next to each document or to select all records with the checkbox "Select All" in the table header. The button "Delete document(s)" will appear in the toolbar. After confirming the security query, the documents are deleted and you get the number of deleted items back via will be shown in a on-screen message.
Console mode
Of course also documents via the console mode can also be deleted in console mode.
Codeblock | ||||
---|---|---|---|---|
| ||||
// Delete all documents with the city AGAWAM db.zipcode.remove({city: 'AGAWAM'}); |
...
Tipp |
---|
More about deleting documents via in console mode can be found here http://docs.mongodb.org/manual/tutorial/remove-documents/ |