# drop

Removes fields from the event.

```tql
drop field...
```

## Description

Removes the given fields from the events. Issues a warning if a field is not present.

## Examples

### Drop fields from the input

```tql
from {
  src: 192.168.0.4,
  dst: 192.168.0.31,
  role: "admin",
  info: {
    id: "cR32kdMD9",
    msg: 8411,
  },
}
drop role, info.id
```

```tql
{
  src: 192.168.0.4,
  dst: 192.168.0.31,
  info: {
    msg: 8411,
  },
}
```

## See Also

* [`select`](https://preview.docs.tenzir.com/375/375/reference/operators/select.md)
* [`where`](https://preview.docs.tenzir.com/375/375/reference/operators/where.md)
* [Filter and select data](https://preview.docs.tenzir.com/375/375/guides/transformation/filter-and-select-data.md)
* [Learn idiomatic TQL](https://preview.docs.tenzir.com/375/375/tutorials/learn-idiomatic-tql.md)