DOKK / manpages / debian 11 / libmongoc-doc / mongoc_collection_destroy.3.en
MONGOC_COLLECTION_DESTROY(3) libmongoc MONGOC_COLLECTION_DESTROY(3)

mongoc_collection_destroy - mongoc_collection_destroy()

void
mongoc_collection_destroy (mongoc_collection_t *collection);


collection: A mongoc_collection_t.

This function shall destroy a mongoc_collection_t and its associated resources. Does nothing if collection is NULL.

WARNING:

Always destroy a mongoc_cursor_t created from a collection before destroying the collection.


MongoDB, Inc

2017-present, MongoDB, Inc

June 4, 2021 1.17.6