4

I created few wallets with Bitcoin Core using file-> Create Wallet. It created directories for each wallet name. Only that was for experimenting so I deleted those directories.

The problem is that now when I run Bitcoin Core, it tries (and fails) to load each of those nonexistent wallets. For instance, one of those wallet names was wall2, so when I run bitcoin core now I get this message:

"Warning: Skipping -wallet path that doesn't exist. Failed to load database path'E:\bitcoin\wall2. Path does not exist."

And for every such message, I need to click Enter.

How can I make bitcoin core 'forget' and stop trying to load all those ghost wallets?

1 Answer 1

7

In the data directory, there should be a file named settings.json. Just delete the lines with the names of the wallets that you have removed.

The file needs to contain valid json, so you also need to make sure that the last name entry in the wallet array does not contain a trailing comma.

For example, if you created wallets named wallet1, wallet2, wallet3, and wallet4, the file should look like

{
    "wallet": [
     "wallet1",
     "wallet2",
     "wallet3",
     "wallet4"
    ]
   }

If you have deleted wallet2 and wallet4, then you need to change the file to be:

{
    "wallet": [
     "wallet1",
     "wallet3"
    ]
   }
3
  • Great! Thanks @Andrew Chow
    – mikest
    Jan 11, 2022 at 9:38
  • @Andrew Chow is there a way to officially delete a wallet rather than this manual procedure?
    – mikew
    Feb 9 at 3:11
  • 1
    @mikew No, there is not. Generally we avoid giving users an easy way to delete things that are necessary to spend Bitcoin as that can be a very big footgun.
    – Andrew Chow
    Feb 9 at 4:05

Your Answer

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

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