SYNOPSIS

bool
mongoc_database_drop (mongoc_database_t *database,
                      bson_error_t      *error);

DESCRIPTION

The mongoc_database_drop() function requests that a database be dropped, including all collections and indexes associated with the database.

Make sure this is really what you want!

error

an optional error pointer to store any error data

RETURN VALUE

The mongoc_database_drop() function returns true if the database was successfully dropped. In the event of an error it returns false an error is set.

ERRORS

Errors are returned through error and may vary based on the server version.

SEE ALSO

AUTHORS

This page was written by MongoDB Inc.