MONGOC_COLLECTION_DROP(3)

πŸ’… MONGOC_COLLECTION_DROP(3) β€” the libmongoc glow-up πŸŽ€

okay so bestie, welcome to libmongoc's little drop-the-collection moment. this is the manual page for MONGOC_COLLECTION_DROP(3) and honestly it's giving "short and iconic" ✨


🌸 SYNOPSIS 🌸

bool
mongoc_collection_drop (mongoc_collection_t *collection, bson_error_t *error);

that's the whole vibe. returns a bool, takes two pointers, no cap πŸ’–


πŸ¦‹ PARAMETERS πŸ¦‹

  • collection β€” a mongoc_collection_t. literally the collection, bestie πŸ’…
  • error β€” an optional location for a bson_error_t, or NULL. optional!! so you can just pass NULL if you're feeling brave πŸ™ˆ

πŸ‘‘ DESCRIPTION πŸ‘‘

so for the full tea, go read mongoc_collection_drop_with_opts(). this function here is a thin wrapper β€” it passes NULL in as the bson_t parameter and that's the entire personality 🫢

it's giving "little sibling function that just forwards the message" fr fr. short, sweet, does its one job ✨

lowkey reminder: it's a thin wrapper, so any actual behaviour questions go to mongoc_collection_drop_with_opts() β€” don't come for me, I'm just the messenger 😭

🧚 AUTHOR 🧚

MongoDB, Inc πŸ’œ


2009-present, MongoDB, Inc. β€” periodt, protected 🌈


and that's the whole page, bestie! πŸ’– this was libmongoc version 2.5.6, dated Oct 09, 2026 β€” screenshot it, bookmark it, tell your friends, the manual page ate and left no crumbs πŸŽ€βœ¨πŸ‘‘

πŸ“¦ where this page comes from