The pruneblockchain RPC prunes the blockchain up to a specified height or timestamp. The -prune option needs to be enabled (disabled by default).

Parameter #1—the block height or timestamp

Name Type Presence Description
Height number (int) Required
(exactly 1)
The block height to prune up to. May be set to a particular height, or a unix timestamp to prune blocks whose block time is at least 2 hours older than the provided timestamp

Result—the height of the last block pruned

Name Type Presence Description
result number (int) Required
(exactly 1)
The height of the last block pruned


pai-cli pruneblockchain 413555



See also

  • ImportPrunedFunds: imports funds without the need of a rescan. Meant for use with pruned wallets.