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 by mongoc_bulk_operation_remove_one_with_opts() and mongoc_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 β€” a mongoc_bulk_operation_t. It's the bulk operation itself, the whole vibe, the group chat you're sending the message to πŸ¦‹
  • selector β€” a bson_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 ✨

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