1MONGOC_DATABASE_REMOVE_ALL_USERS(3)libmongocMONGOC_DATABASE_REMOVE_ALL_USERS(3)
2
3
4
6 mongoc_database_remove_all_users - mongoc_database_remove_all_users()
7
9 bool
10 mongoc_database_remove_all_users (mongoc_database_t *database,
11 bson_error_t *error);
12
13 This function will remove all users configured to access database.
14
16 • database: A mongoc_database_t.
17
18 • error: An optional location for a bson_error_t or NULL.
19
21 Errors are propagated via the error parameter. This may fail if there
22 are socket errors or the current user is not authorized to perform the
23 given command.
24
26 Returns true if successful. Returns false and sets error if there are
27 invalid arguments or a server or network error.
28
30 MongoDB, Inc
31
33 2017-present, MongoDB, Inc
34
35
36
37
381.24.3 Aug 17, 202M3ONGOC_DATABASE_REMOVE_ALL_USERS(3)