1MONGOC_DATABASE_REMOVE_USER(3) libmongoc MONGOC_DATABASE_REMOVE_USER(3)
2
3
4
6 bool
7 mongoc_database_remove_user (mongoc_database_t *database,
8 const char *username,
9 bson_error_t *error);
10
11 This function removes the user named username from database.
12
14 • database: A mongoc_database_t.
15
16 • username: A string containing the username of the user to remove.
17
18 • error: An optional location for a bson_error_t or NULL.
19
21 Errors are propagated via the error parameter. This could include
22 socket errors or others if the current user is not authorized to per‐
23 form the 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.25.1 Nov 08, 2023 MONGOC_DATABASE_REMOVE_USER(3)