---
name: "mongoc_cursor_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_cursor_destroy"
---

# mongoc\_cursor\_destroy(3)

## SYNOPSIS

```
void
mongoc_cursor_destroy (mongoc_cursor_t *cursor);
```

## PARAMETERS

- •

  **cursor**: A *mongoc\_cursor\_t*.

## DESCRIPTION

Frees a *mongoc\_cursor\_t* and releases all associated resources. If a server-side cursor has been allocated, it will be released as well. Does nothing if **cursor** is NULL.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
