> ## 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.

# Prune

Other APIs

›

[Protobuf](https://docs.canton.network/reference/protobuf/overview.md)

›

[com.digitalasset.canton.tea.v1](https://docs.canton.network/reference/protobuf/packages/com-digitalasset-canton-tea-v1.md)

›

Prune

com.digitalasset.canton.tea.v1

# Prune

gRPC

[Added 3.7.0](#history-added-3-7-0)

RPC

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

## Protocol Details

Protocol
gRPC

Service
TrafficService

RPC
Prune

Client stream
No

Server stream
No

## Inputs

### PruneRequest

Message
com.digitalasset.canton.tea.v1.PruneRequest

Client stream
No

`before_or_at`
Timestamp

## Outputs

### PruneResponse

Message
com.digitalasset.canton.tea.v1.PruneResponse

Server stream
No

`pruned_event_count`
int32

`pruned_correlation_count`
int32

## Related Schemas

> **com.digitalasset.canton.tea.v1.PruneRequest**
>
> `before_or_at`
> Timestamp

> **com.digitalasset.canton.tea.v1.PruneResponse**
>
> `pruned_event_count`
> int32
>
> `pruned_correlation_count`
> int32

## History

Added
`3.7.0`

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/Prune <<'EOF'
{
  "beforeOrAt": "string"
}
EOF
```

OK

application/json

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