Bitcoind clear / reset my testnet to retest some things

0

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?

Marc Alexander

Posted 2017-07-24T17:51:04.497

Reputation: 531

Answers

1

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

Andrew Chow

Posted 2017-07-24T17:51:04.497

Reputation: 40 910

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 2017-07-25T20:25:01.017

Are you sure you deleted the right wallet? Any wallet related things are stored in the wallet.dat file and not elsewhere.Andrew Chow 2017-07-25T21:16:07.260