---
name: "mongoc_gridfs_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_gridfs_destroy"
---

# mongoc\_gridfs\_destroy(3)

## SYNOPSIS

```
void
mongoc_gridfs_destroy (mongoc_gridfs_t *gridfs);
```

## PARAMETERS

- •

  **gridfs**: A *mongoc\_gridfs\_t*.

## DESCRIPTION

This function shall destroy the gridfs structure referenced by **gridfs** and any resources associated with the gridfs. Does nothing if **gridfs** is NULL.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
