---
name: "mongoc_database_destroy"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_database_destroy"
---

# mongoc\_database\_destroy(3)

## SYNOPSIS

```
void
mongoc_database_destroy (mongoc_database_t *database);
```

Releases all resources associated with **database**, including freeing the structure. Does nothing if **database** is NULL.

## PARAMETERS

- •

  **database**: A *mongoc\_database\_t*.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
