Skip to content
Documentation/canton-network-docs/Ledger APIgRPC APIPackagesv2.adminServicesParticipantPruningServiceView on canton-network-docs
canton-network-docs/Ledger APIgRPC APIPackagesv2.adminServicesParticipantPruningService

Prune

Ledger APIgRPC APIv2.adminPrune

com.daml.ledger.api.v2.admin

Prune

gRPCSince 3.4.4
RPC/com.daml.ledger.api.v2.admin.ParticipantPruningService/Prune

Protocol Details

Inputs

PruneRequest

prune_up_toint64
submission_idstring
prune_all_divulged_contractsbool

Outputs

PruneResponse

Lifecycle Changes

3.4.4introduced

com.daml.ledger.api.v2.admin.PruneRequest

prune_up_toint64
submission_idstring
prune_all_divulged_contractsbool

com.daml.ledger.api.v2.admin.PruneResponse

grpcurl
grpcurl
# Add -plaintext if the server is not using TLS.
grpcurl \
  -d @ \
  <HOST:PORT> \
  com.daml.ledger.api.v2.admin.ParticipantPruningService/Prune <<'EOF'
{
  "pruneUpTo": "0",
  "submissionId": "string",
  "pruneAllDivulgedContracts": true
}
EOF
OKapplication/json
OK
{}