MONGOC_COLLECTION_DROP_INDEX(3)

πŸ’… MONGOC_COLLECTION_DROP_INDEX πŸ’…

okay bestie, this is the section 3 libmongoc page for mongoc_collection_drop_index, and it's lowkey just a tiny little wrapper doing its thing πŸ’– no cap, the whole signature is right here:

✨ SYNOPSIS ✨

          bool
          mongoc_collection_drop_index (mongoc_collection_t *collection,
                                        const char *index_name,
                                        bson_error_t *error);

that's it, that's the vibe check βœ…

πŸŽ€ PARAMETERS πŸŽ€

  • collection β€” a mongoc_collection_t. that's the collection you're working with, bestie 🫢
  • index_name β€” a string containing the name of the index. literally the index's name, no mystery πŸ’…
  • error β€” an optional location for a bson_error_t or NULL. optional optional, so you can pass NULL if you're not in your error-handling era πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

for more information, see mongoc_collection_drop_with_opts(). this function is a thin wrapper, passing NULL in as the bson_t parameter β€” that's the whole move, periodt ✨

🌸 AUTHOR 🌸

MongoDB, Inc

2009-present, MongoDB, Inc.


source/version check: this is libmongoc 2.5.6, dated Oct 09, 2026 β€” hope that helped, mwah πŸ’‹πŸ’–

πŸ“¦ where this page comes from