1MONGOC_COLLECTION_DESTROY(3) libmongoc MONGOC_COLLECTION_DESTROY(3)
2
3
4
6 void
7 mongoc_collection_destroy (mongoc_collection_t *collection);
8
10 • collection: A mongoc_collection_t.
11
13 This function shall destroy a mongoc_collection_t and its associated
14 resources. Does nothing if collection is NULL.
15
16 WARNING:
17 Always destroy a mongoc_cursor_t created from a collection before
18 destroying the collection.
19
21 MongoDB, Inc
22
24 2017-present, MongoDB, Inc
25
26
27
28
291.25.1 Nov 08, 2023 MONGOC_COLLECTION_DESTROY(3)