1MONGOC_DATABASE_REMOVE_USER(3) MongoDB C Driver MONGOC_DATABASE_REMOVE_USER(3)
2
3
4
6 mongoc_database_remove_user - mongoc_database_remove_user()
7
9 bool
10 mongoc_database_remove_user (mongoc_database_t *database,
11 const char *username,
12 bson_error_t *error);
13
14 This function removes the user named username from database.
15
17 · database: A mongoc_database_t.
18
19 · username: A string containing the username of the user to remove.
20
21 · error: An optional location for a bson_error_t or NULL.
22
24 Errors are propagated via the error parameter. This could include
25 socket errors or others if the current user is not authorized to per‐
26 form the command.
27
29 Returns true if successful. Returns false and sets error if there are
30 invalid arguments or a server or network error.
31
33 MongoDB, Inc
34
36 2017-present, MongoDB, Inc
37
38
39
40
411.15.2 Nov 06, 2019 MONGOC_DATABASE_REMOVE_USER(3)