MONGOC_BULK_OPERATION_REMOVE(3)
π MONGOC_BULK_OPERATION_REMOVE(3) π
okay bestie, welcome to the libmongoc manual page for mongoc_bulk_operation_remove β yes that's the whole thing, we stan a long function name π
β¨ SYNOPSIS β¨
void
mongoc_bulk_operation_remove (mongoc_bulk_operation_t *bulk,
const bson_t *selector);
πΈ DESCRIPTION πΈ
Lil heads up before we go any further: any time you see mongoc_bulk_operation_remove in this page, just know you're on the MONGOC_BULK_OPERATION_REMOVE(3) page, iykyk π«
okay so what does it do? It removes documents as part of a bulk operation π«Ά That's it, that's the vibe.
BUT β and this is the part people miss β it only queues the operation. It does not run it. Nothing happens yet. No cap. If you actually want it to go do the thing, you gotta call mongoc_bulk_operation_execute() yourself. That's the main character, that's who actually ships it. π₯
β οΈ also big heads up: this function is superseded bymongoc_bulk_operation_remove_one_with_opts()andmongoc_bulk_operation_remove_many_with_opts(). So likeβ¦ it still exists, but the newer ones are eating and this one is lowkey the older sibling. Just so you know π
π PARAMETERS π
bulkβ amongoc_bulk_operation_t. It's the bulk operation itself, the whole vibe, the group chat you're sending the message to π¦selectorβ abson_t. This is the selector that says which docs we're talking about β¨
π ERRORS π
Errors don't get reported here, bestie β they get propagated via mongoc_bulk_operation_execute(). So the errors show up later, at execute time. Don't come looking for them here, they're not home π
π SEE ALSO π
mongoc_bulk_operation_remove_one()mongoc_bulk_operation_remove_one_with_opts()mongoc_bulk_operation_remove_many_with_opts()
like, go read these too fr fr π
π AUTHOR π
MongoDB, Inc β the house that built this β¨
π COPYRIGHT π
2009-present, MongoDB, Inc. β all the rights, all the years, periodt π
and that's the whole page bestie!! this served libmongoc version 2.5.6, dated Oct 09, 2026 π mwah, go queue those removes responsibly ππΈπ«Ά
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms