<p>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 ?</p>
<p>Thanks,</p>

CC BY-SA 4.0
2022-09-01T23:29:59.010Z
This sounds like you have pruning enabled. If pruning is off, no blk*.dat file should ever be deleted.
Pieter Wuille
<bitcoin-core><blockchain>
Why is Bitcoin core deleting my blk files while downloading blockchain?
LuckyAutomata
# Why is Bitcoin core deleting my blk files while downloading blockchain?

(Asked by: username_0 on 2022-09-01)

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 ?

Thanks,

**Tags:** bitcoin-core, blockchain

> **Comments:**
> **username_1**: This sounds like you have pruning enabled. If pruning is off, no blk*.dat file should ever be deleted.  

---

## 0 answers

