MONGOC_BULK_OP...ION_REMOVE_ONE(3)

πŸ’… mongoc_bulk_operation_remove_one πŸ’…

okay so this is from the libmongoc manual, and it's giving β€œqueue up a single delete” energy. ✨

πŸ“œ SYNOPSIS

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

Remove a single document as part of a bulk operation. This only queues the operation. To actually execute it, call mongoc_bulk_operation_execute(). πŸ”₯

This function is superseded by mongoc_bulk_operation_remove_one_with_opts(). iykyk β€” the newer one is the main character here.

πŸŽ€ PARAMETERS

  • bulk β€” a mongoc_bulk_operation_t. that's the bulk-op handle, bestie.
  • selector β€” a bson_t that selects which document to remove. it's literally the β€œwhich one?” vibe check.

😭 ERRORS

Errors are propagated via mongoc_bulk_operation_execute(). so don't expect this call alone to spill the tea about failures β€” execution is where it shows up. πŸ’€

πŸ‘€ SEE ALSO

  • mongoc_bulk_operation_remove_one_with_opts()
  • mongoc_bulk_operation_remove_many_with_opts()

πŸ‘‘ AUTHOR

MongoDB, Inc

2009-present, MongoDB, Inc.


From libmongoc version 2.5.6, dated Oct 09, 202 β€” slay, and happy bulk deleting πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from