Skip to content
CCPEDIAby Unity Nodes
Documentation/Canton Network docs/Ledger API › gRPC API › Packages › v2.admin › Services › ParticipantPruningServiceView on Canton Network docs ↗

Prune

Ledger API›gRPC API›v2.admin›Prune

com.daml.ledger.api.v2.admin

Prune

gRPC
RPC/com.daml.ledger.api.v2.admin.ParticipantPruningService/Prune

Protocol Details

ProtocolgRPC
ServiceParticipantPruningService
RPCPrune
Client streamNo
Server streamNo

Inputs

PruneRequest

Messagecom.daml.ledger.api.v2.admin.PruneRequest
Client streamNo
prune_up_toint64
submission_idstring
prune_all_divulged_contractsbool

Outputs

PruneResponse

Messagecom.daml.ledger.api.v2.admin.PruneResponse
Server streamNo

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
{}