<p>You need to delete the data directories entirely with the node software shut down when you do that. If both nodes' data directories have been removed and starting one of them still results in the blockchain being downloaded, that means that there is a node that you are connecting to which did not have its data directory cleared. You can find out what node that is by looking in the debug.log file and seeing the IP address of the node that you are connecting to (or is connecting to you).</p>

<p>Alternatively if you generate a new genesis block, you will not have this problem as whatever blockchain you use with the new genesis block will be different from the original blockchain.</p>

CC BY-SA 3.0
2018-04-23T12:02:52.460Z
Yeah... believe it or not, someone had spied my release on github and had already mined my first block. how they did that I have no idea given I haven't advertised it anywhere
ScottishTapWater
CC BY-SA 3.0
2018-04-22T22:18:07.227Z
2018-04-22T22:18:07.227Z
Ava Chow
<p>So, I'm setting up an altcoin for educational purposes and I've essentially forked Litecoin.</p>

<p>It's got a 10% premine on it but this wasn't showing up in my wallet so I deleted the <code>$HOME/.mycoin/</code> directories on my nodes and my <code>%appdata%/mycoin</code> folder on my wallet host in an attempt to restart the blockchain.</p>

<p>However, the blocks that I have attempted to delete are still reappearing as soon as I start my daemon up again.</p>

<p>Any idea what directories/files I need to delete to completely restart the blockchain. This ought to be fairly trivial as I have complete control of the two nodes and the only machine that's connected to it.</p>

<p>Thanks</p>

<litecoin><genesis-block><litecoin-qt>
Restart altcoin blockchain
ScottishTapWater
# Restart altcoin blockchain

(Asked by: username_0 on 2018-04-22)

So, I'm setting up an altcoin for educational purposes and I've essentially forked Litecoin.

It's got a 10% premine on it but this wasn't showing up in my wallet so I deleted the `$HOME/.mycoin/` directories on my nodes and my `%appdata%/mycoin` folder on my wallet host in an attempt to restart the blockchain.

However, the blocks that I have attempted to delete are still reappearing as soon as I start my daemon up again.

Any idea what directories/files I need to delete to completely restart the blockchain. This ought to be fairly trivial as I have complete control of the two nodes and the only machine that's connected to it.

Thanks

**Tags:** litecoin, genesis-block, litecoin-qt


---

## 1 answers

### Answer by username_1 on 2018-04-22. Score: 1 | Accepted answer

You need to delete the data directories entirely with the node software shut down when you do that. If both nodes' data directories have been removed and starting one of them still results in the blockchain being downloaded, that means that there is a node that you are connecting to which did not have its data directory cleared. You can find out what node that is by looking in the debug.log file and seeing the IP address of the node that you are connecting to (or is connecting to you).

Alternatively if you generate a new genesis block, you will not have this problem as whatever blockchain you use with the new genesis block will be different from the original blockchain.

> **Comments:**
> **username_0**: Yeah... believe it or not, someone had spied my release on github and had already mined my first block. how they did that I have no idea given I haven't advertised it anywhere  

---

