MONGOC_BULK_OPERATION_DELETE(3)

πŸ’… MONGOC_BULK_OPERATION_DELETE πŸ’…

okay bestie, welcome to libmongoc, and today's main character is MONGOC_BULK_OPERATION_DELETE(3). she's an icon, she's a legend, and she is deprecated β€” so buckle up πŸŽ€


🚨 WARNING 🚨

Deprecated since version 0.96.0.

no cap, she's retired. the glow-up replacement is:

mongoc_bulk_operation_remove()

use that one instead, fr fr. πŸ’–


✨ SYNOPSIS ✨

void
mongoc_bulk_operation_delete (mongoc_bulk_operation_t *bulk,
                              const bson_t *selector);

🌸 DESCRIPTION 🌸

so here's the vibe: this function deletes documents as part of a bulk operation. that's it, that's the whole job πŸ¦‹

but β€” and this is the important part β€” it only queues the operation. it does not actually do the thing yet. it's giving "added to cart but didn't check out." to actually make it happen, you gotta call:

mongoc_bulk_operation_execute()

periodt. πŸ’…


🫢 PARAMETERS 🫢

  • bulk β€” a mongoc_bulk_operation_t. your bulk operation babe, the one holding all the queued stuff ✨
  • selector β€” a bson_t. the little document that says which ones we're deleting πŸ‘‘

😭 ERRORS 😭

errors don't show up here directly, bestie β€” they get propagated via:

mongoc_bulk_operation_execute()

so if something goes sideways, that's where you'll hear about it. πŸ’€


πŸ‘€ SEE ALSO πŸ‘€

  • mongoc_bulk_operation_remove_many_with_opts()
  • mongoc_bulk_operation_remove_one_with_opts()

(the two options that ate and left no crumbs πŸ“)


πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc


2009-present, MongoDB, Inc.


and that's the whole page, bestie 🧚 this was libmongoc version 1.30.13, dated Oct 09, 2026 β€” thanks for reading, mwah πŸ’œβœ¨

πŸ“¦ where this page comes from