robbiblubber.org

help | login | search:  
<<

Home Page
Index

Projects

Utility Suite
Data Suite
Bad Wolf Suite
WeakWiki

User Docs

ConfigNotepad
LED
rqoon
Nuub

Code Docs

.NET
Java
PHP

robbiblubber.org

Specs
Articles

Sources















read  source  history 


remove()


MongoDB Driver Function Reference


Deletes documents from a collection that meet the filter criteria.
More information can be found in the corresponding entry of the MongoDB Manual.



<collection>.remove(<filter>[, <one>])



Arguments


<collection> The target collection.
<filter> A filter expression using query operators.
<one> A Boolean specifying if only one document will be removed.



Example


db.employees.remove({ salary: { $gt: 700000 }});


Deletes all documents from the employee collection with a salary greater than 700000.




home | MongoDB Driver Function Reference | MongoDB Driver