---
name: "TSHttpHdrDestroy"
section: "3ts"
platform: "linux"
package: "trafficserver-dev"
version: "9.2.5+ds-0+deb12u4"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/TSHttpHdrDestroy"
---

# TSHttpHdrDestroy(3ts)

TSHttpHdrDestroy API function

## NAME

TSHttpHdrDestroy - TSHttpHdrDestroy API function

## SYNOPSIS

```
#include <ts/ts.h>
```

- **void TSHttpHdrDestroy(*TSMBuffer* bufp, *TSMLoc* offset)**

  ## DESCRIPTION

Destroys the HTTP header located at *hdr\_loc* within the marshal buffer *bufp*.

**IMPORTANT:**

Do not forget to release the handle *hdr\_loc* with a call to *TSHandleMLocRelease()*.

## COPYRIGHT

2026, dev@trafficserver.apache.org
