MongoCollectionDeleteMany[MongoCollection[…],filter]
deletes one or more documents that match the filter filter.


MongoCollectionDeleteMany
MongoCollectionDeleteMany[MongoCollection[…],filter]
deletes one or more documents that match the filter filter.
Details and Options
- To use MongoCollectionDeleteMany, you first need to load MongoLink using Needs["MongoLink`"].
- filter is an Association. filter uses the same the same syntax as the first argument query to MongoCollectionFind. The list of available query selectors can be found in the MongoDB documentation.
- The following option is supported:
-
"WriteConcern" Automatic the write concern to use. - "WriteConcern" can either be Automatic, or a MongoWriteConcern object.
- MongoCollectionDeleteMany corresponds to db.collection.deleteMany() in the MongoDB manual.
Examples
open all close allBasic Examples (1)
Tech Notes
Related Guides
Text
Wolfram Research (2018), MongoCollectionDeleteMany, Wolfram Language function, https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionDeleteMany.html.
CMS
Wolfram Language. 2018. "MongoCollectionDeleteMany." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionDeleteMany.html.
APA
Wolfram Language. (2018). MongoCollectionDeleteMany. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionDeleteMany.html
BibTeX
@misc{reference.wolfram_2025_mongocollectiondeletemany, author="Wolfram Research", title="{MongoCollectionDeleteMany}", year="2018", howpublished="\url{https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionDeleteMany.html}", note=[Accessed: 13-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_mongocollectiondeletemany, organization={Wolfram Research}, title={MongoCollectionDeleteMany}, year={2018}, url={https://reference.wolfram.com/language/MongoLink/ref/MongoCollectionDeleteMany.html}, note=[Accessed: 13-August-2025]}