SYNOPSIS

bool
mongoc_collection_drop (mongoc_collection_t *collection,
                        bson_error_t        *error);

DESCRIPTION

The mongoc_collection_drop() function requests that a collection be dropped, including all indexes associated with the collection.

Make sure this is really what you want!

error

an optional error pointer to store any error data

RETURN VALUE

The mongoc_collection_drop() function returns true if the collection 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.