<a id="dropheaders"></a>

# Kafka Connect DropHeaders SMT Usage Reference for Confluent Platform

The DropHeaders SMT (`org.apache.kafka.connect.transforms.DropHeaders`)
removes one or more specified headers from each Apache Kafka® record.

## Description

The DropHeaders SMT drops one or more headers from each record.

To insert a header into records, see
[InsertHeader SMT](insertheader.md#insertheader).

<a id="dropheaders-properties"></a>

## Properties

| Name      | Description                                                 | Type   | Valid values                          | Importance   |
|-----------|-------------------------------------------------------------|--------|---------------------------------------|--------------|
| `headers` | One or more comma-separated header names to drop. Required. | list   | non-empty list of unique header names | high         |

## Example

This example shows how to use `DropHeaders` to drop the headers
named `app.id` and `txn.id`.

```json
"transforms": "dropAppIdHeader",
"transforms.dropAppIdHeader.type": "org.apache.kafka.connect.transforms.DropHeaders",
"transforms.dropAppIdHeader.headers": "app.id,txn.id"
```

Before: Records include headers `app.id` and `txn.id`.

After: Records do not include headers `app.id` and `txn.id`.

## Predicates

Configure transformations with predicates to ensure they process only records
that satisfy a particular condition. You can also use predicates in a
transformation chain with the [Kafka Connect Filter (Kafka) SMT Usage Reference for Confluent Platform](filter-ak.md#ak-filter) to conditionally filter specific
records. For more information, see [Predicates](filter-ak.md#predicates).
