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