---
name: "SDL_DestroyEnvironment"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_DestroyEnvironment"
---

# SDL\_DestroyEnvironment(3)

Destroy a set of environment variables.

## NAME

SDL\_DestroyEnvironment - Destroy a set of environment variables.

## HEADER FILE

Defined in SDL3/SDL\_stdinc.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**void SDL\_DestroyEnvironment(SDL\_Environment \*env);**

## FUNCTION PARAMETERS

- *env*

  the environment to destroy.

## THREAD SAFETY

It is safe to call this function from any thread, as long as the environment is no longer in use.

## AVAILABILITY

This function is available since SDL 3.2.0.

## SEE ALSO

**•**(3), [**SDL\_CreateEnvironment**(3)](/SDL_CreateEnvironment/3.md)
