Bitcoin Core already has the performance to do precisely this: pruning. You may allow pruning by setting prune=<n> in your bitcoin.conf file or by passing -prune=<n> to bitcoind on startup.
Verify bitcoind -h for extra data, however briefly:
prune=1permits for manually deleting blocks utilizing thepruneblockchainrpcprune=<some quantity >= 550>allows your node to robotically delete blocks to maintain the dimensions, measured in MiB, lower than the quantity specified
Just a few issues to bear in mind when pruning:
- You can’t run
txindexwhereas pruning, so you will not be capable to use your node to lookup particular transactions - When you ever wish to flip pruning off, you have to to re-download the complete blockchain
