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

# TTF\_DestroyText(3)

Destroy a text object created by a text engine.

## NAME

TTF\_DestroyText - Destroy a text object created by a text engine.

## HEADER FILE

Defined in SDL3\_ttf/SDL\_ttf.h

## SYNOPSIS

```
#include "SDL3_ttf/SDL_ttf.h"
```

**void TTF\_DestroyText(TTF\_Text \*text);**

## FUNCTION PARAMETERS

- *text*

  the text to destroy.

## THREAD SAFETY

This function should be called on the thread that created the text.

## AVAILABILITY

This function is available since SDL\_ttf 3.0.0.

## SEE ALSO

**•**(3), [**TTF\_CreateText**(3)](/TTF_CreateText/3.md)
