> ## Documentation Index
> Fetch the complete documentation index at: https://docs.canton.network/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> If you are building a Canton Network application, start from https://docs.canton.network/appdev/quickstart.md. To run only a local network for your own Daml code, without building the QuickStart demo, see https://docs.canton.network/sdks-tools/development-tools/localnet.md.

# PruneEvents

Other APIs

›

[gRPC API](https://docs.canton.network/reference/grpc-ledger-api-reference/overview.md)

›

[com.digitalasset.canton.tea.v1](https://docs.canton.network/reference/grpc-ledger-api-reference/com-digitalasset-canton-tea-v1.md)

›

PruneEvents

com.digitalasset.canton.tea.v1

# PruneEvents

gRPC

[Added 3.6.1](#history-added-3-6-1)

RPC

`/com.digitalasset.canton.tea.v1.TrafficService/PruneEvents`

## Protocol Details

Protocol
gRPC

Service
TrafficService

RPC
PruneEvents

Client stream
No

Server stream
No

## Inputs

### PruneEventsRequest

Message
com.digitalasset.canton.tea.v1.PruneEventsRequest

Client stream
No

`before_or_at`
Timestamp

## Outputs

### PruneEventsResponse

Message
com.digitalasset.canton.tea.v1.PruneEventsResponse

Server stream
No

`pruned_event_count`
int32

## Related Schemas

> [accordion] com.digitalasset.canton.tea.v1.PruneEventsRequest
>
> `before_or_at`
> Timestamp

> [accordion] com.digitalasset.canton.tea.v1.PruneEventsResponse
>
> `pruned_event_count`
> int32

## History

Added
`3.6.1`

grpcurl

```bash grpcurl theme={"theme":{"light":"github-light","dark":"github-dark"}}
# Add -plaintext if the server is not using TLS.
grpcurl \
  -d @ \
  <HOST:PORT> \
  com.digitalasset.canton.tea.v1.TrafficService/PruneEvents <<'EOF'
{
  "beforeOrAt": "string"
}
EOF
```

OK

application/json

```json OK theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "prunedEventCount": 0
}
```
