Using Bitcoin Core v0.18.0 and Qt v5.9.7, I had no problem using importaddress to view an address under the Watch-only balance, but I can't find a command to remove it. How can I remove it? (without using another program or different wallet file.)
Thanks
A while ago, I removed some address (watch-only addresses) from my QT wallet that appears when I ran a personal server for electrum wallet. It might not be what you expected, because I did use a new wallet.dat file after removed (renamed) the old wallet.dat (But maybe you want to know it)
- Copy and save your entire private key from the addresses that contain UTXO or an address's private key that you want to keep (use dumpprivkey "address" via console). You might need to enable coin control features to see the UTXOs list.
- Or you can move the all of UTXO to the one specific address, so later you merely need to import one private key only.
- Don't forget to back up the wallet.dat (it may also help you to retrieve the old wallet data if something goes wrong)
- Then shutdown the bitcoin-qt and rename/delete the walllet.dat from Bitcoin data directory
- Start the bitcoin-qt and import the private keys that you saved before (use importprivkey "privkey" "label" false via console)
- For the latest private key use importprivkey "privkey" "label" (without "false" parameter, so it will rescanning the whole address (transactions))