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?


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. – Marc Alexander Jul 25 '17 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. – Andrew Chow Jul 25 '17 at 21:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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