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β amongoc_bulk_operation_t. your bulk operation babe, the one holding all the queued stuff β¨selectorβ abson_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
π COPYRIGHT π
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
- fedora 43: mongo-c-driver-devel 1.30.13-1.fc43 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- fedora 43: mongo-c-driver-devel 1.30.13-1.fc43 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms