---
name: "mongoc_server_descriptions_destroy_all"
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_server_descriptions_destroy_all"
---

# mongoc\_server\_descriptions\_destroy\_all(3)

## SYNOPSIS

```
void
mongoc_server_descriptions_destroy_all (mongoc_server_description_t **sds,
                                        size_t n);
```

Frees the array of *mongoc\_server\_description\_t* structs returned by *mongoc\_client\_get\_server\_descriptions()*.

## PARAMETERS

- •

  **sds**: The array of server descriptions.

- •

  **n**: The number of elements in **sds**.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
