I want to download the bitcoin blockchain to actually be able to parse it using the blk files, but as I'm seeing right now while installing, bitcoin core is deleting them and keeps downloading newer ones but I want to have everything related to block headers not transaction data. Is there a way to keep everything or only block headers ?


  • This sounds like you have pruning enabled. If pruning is off, no blk*.dat file should ever be deleted. Sep 1, 2022 at 23:29

1 Answer 1


Run bitcoind or bitcoin-qt with -prune=0. If you are using bitcoin-qt and pruning was enabled when it was run for the first time, you can disable it in settings -> options.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.