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.


bitcoin-cli listtransactions

No transactions are returned.

What is the easiest way to do this?

1 Answer 1


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

  • Didn't work. For some reason I did this and it only deleted some of the wallets. Weird, I'll keep messing with it. Commented Jul 25, 2017 at 20:25
  • Are you sure you deleted the right wallet? Any wallet related things are stored in the wallet.dat file and not elsewhere.
    – Ava Chow
    Commented Jul 25, 2017 at 21:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.