<p>Delete the wallet.dat file in your testnet datadir and restart Bitcoin Core. Note that this will destroy all of your coins.</p>

CC BY-SA 3.0
2017-07-25T20:25:01.017Z
Didn't work. For some reason I did this and it only deleted some of the wallets. Weird, I'll keep messing with it.
Marc Alexander
CC BY-SA 3.0
2017-07-25T21:16:07.260Z
Are you sure you deleted the right wallet? Any wallet related things are stored in the wallet.dat file and not elsewhere.
Ava Chow
CC BY-SA 3.0
2017-07-24T18:06:20.310Z
2017-07-24T18:06:20.310Z
Ava Chow
<p>I'm running bitcoind on centos and want to reset my testnet. I tested one way and now I want to test something else a different way.</p>

<p>For example, I want to clear it so when I do:</p>

<pre><code>bitcoin-cli listaccounts
</code></pre>

<p>No accounts are returned.</p>

<p>AND</p>

<pre><code>bitcoin-cli listtransactions
</code></pre>

<p>No transactions are returned.</p>

<p>What is the easiest way to do this?</p>

<bitcoind><testnet><bitcoin-cli>
Bitcoind clear / reset my testnet to retest some things
Marc Alexander
# Bitcoind clear / reset my testnet to retest some things

(Asked by: username_0 on 2017-07-24)

I'm running bitcoind on centos and want to reset my testnet. I tested one way and now I want to test something else a different way.

For example, I want to clear it so when I do:

```
bitcoin-cli listaccounts

```

No accounts are returned.

AND

```
bitcoin-cli listtransactions

```

No transactions are returned.

What is the easiest way to do this?

**Tags:** bitcoind, testnet, bitcoin-cli


---

## 1 answers

### Answer by username_1 on 2017-07-24. Score: 1

Delete the wallet.dat file in your testnet datadir and restart Bitcoin Core. Note that this will destroy all of your coins.

> **Comments:**
> **username_0**: Didn't work. For some reason I did this and it only deleted some of the wallets. Weird, I'll keep messing with it.  
> **username_1**: Are you sure you deleted the right wallet? Any wallet related things are stored in the wallet.dat file and not elsewhere.  

---

