<p>Yes, if you don't plan on switching back to the old version you can delete the old blk*.dat files.</p>

<p>The final 0.8 release will include this little script to tidy your data directory:
<a href="https://github.com/bitcoin/bitcoin/blob/master/contrib/tidy_datadir.sh" rel="nofollow">https://github.com/bitcoin/bitcoin/blob/master/contrib/tidy_datadir.sh</a></p>

CC BY-SA 3.0
2016-10-15T19:43:54.523Z
Thanks.  I must have skipped 0.8 because I still had those files there in 0.12.1.  Note I believe you can also safely delete blkindex.dat, addr.dat and db.log if they're still lingering in your Data directory.
rkagerer
CC BY-SA 3.0
2013-02-11T18:56:34.947Z
2013-02-11T18:56:34.947Z
gavinandresen
<p>Upgrading to 0.8 from 0.7 I noticed the old <code>blk*.dat</code> files were untouched, while it was created a new directory called <code>blocks/</code>.</p>

<p>I guess I can delete the old <code>blk*.dat</code> files? Is there something else I'm supposed to delete?</p>

<bitcoind>
I upgraded bitcoind to 0.8 from 0.7, may I delete the old blocks?
o0'.
# I upgraded bitcoind to 0.8 from 0.7, may I delete the old blocks?

(Asked by: username_0 on 2013-02-11)

Upgrading to 0.8 from 0.7 I noticed the old `blk*.dat` files were untouched, while it was created a new directory called `blocks/`.

I guess I can delete the old `blk*.dat` files? Is there something else I'm supposed to delete?

**Tags:** bitcoind


---

## 1 answers

### Answer by username_1 on 2013-02-11. Score: 4 | Accepted answer

Yes, if you don't plan on switching back to the old version you can delete the old blk\*.dat files.

The final 0.8 release will include this little script to tidy your data directory:
<https://github.com/bitcoin/bitcoin/blob/master/contrib/tidy_datadir.sh>

> **Comments:**
> **username_2**: Thanks.  I must have skipped 0.8 because I still had those files there in 0.12.1.  Note I believe you can also safely delete blkindex.dat, addr.dat and db.log if they're still lingering in your Data directory.  

---

