---
title: "Manual pruning"
method: POST
path: "/v1/cryptos/{cryptoCode}/derivations/{derivationScheme}/prune"
tags: ["Derivations"]
---

# Manual pruning

`POST /v1/cryptos/{cryptoCode}/derivations/{derivationScheme}/prune`

Manually prune transactions from a derivation scheme. 
This can be used to remove old transactions whose UTXOs have been spent.

## Path parameters

- `cryptoCode` string, required
- `derivationScheme` string, required

## Request body

- object
  - `daysToKeep` number, double — The number of days of history to keep

## Response `200`

Successfully pruned transactions

- object
  - `totalPruned` integer — The number of transactions pruned from the derivation scheme

## Changes

- **2024-11-25** `32a04b45196c` — 1 info
  - api tag `Derivations` added
- **2024-11-25** `72a2dfa26976` — 1 info
  - endpoint added
- **2024-11-18** `b5092f204599` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/btcpayserver/apis/nbxplorer-api/changes/v1/cryptos/:cryptoCode/derivations/:derivationScheme/prune/post.md)

---

[API](https://skmtc.dev/btcpayserver/apis/nbxplorer-api.md) · [All operations](https://skmtc.dev/btcpayserver/apis/nbxplorer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/btcpayserver/nbxplorer-api/revisions/208cac39e31a/schema)
