Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Kizzabitcoin on March 26, 2021, 01:07:37 AM



Title: Locate and remove Wallet.dat file
Post by: Kizzabitcoin on March 26, 2021, 01:07:37 AM
I've filled my hard drive with blockchain and would like to remove it and start again on another machine.  I have a separate copy of the wallet.dat file.  I've run the uninstall program and removed the bitcore software.  However it appears the wallet.dat file remains, although I can't actually see it-  I can just tell by the amount of memory space the parent folder taking up,  so I'm guessing its a hidden file.
Can anyone tell me how to locate the file so I delete it and free up space on my computer?  I'm running windows 10
Cheers


Title: Re: Locate and remove Wallet.dat file
Post by: DaveF on March 26, 2021, 01:43:26 AM
wallet.dat takes up very little space (1 or 2 MB) . You you probably still have the blockchain files (300+gb)
On windows it's under C:\Users\[your username]\AppData\Roaming\bitcoin
The appdata folder is hidden by default under windows so you have to just put it in the address bar so you might have to do the following:

Tap the Win+R keyboard shortcut to open the run box.
In the run box, enter %AppData%, and tap the Enter key.
A new File Explorer window will open to the AppData’s Roaming folder.

-Dave


Title: Re: Locate and remove Wallet.dat file
Post by: TryNinja on March 26, 2021, 01:43:37 AM
Your wallet.dat only holds your private-keys. You have to find out where the files are located based on your OS (https://en.bitcoin.it/wiki/Data_directory) and delete the blocks and chainstate folders (i.e the blockchain data).


Title: Re: Locate and remove Wallet.dat file
Post by: ranochigo on March 26, 2021, 02:30:42 AM
If you are not importing any wallet.dat or private keys in the future, pruning is an option for you.

If possible, you can try transferring the entire data directory folder from this computer to the one that you're planning to run. By doing so, you can save on the time taken to synchronize the blockchain all over again. Just copy the entire folder and move it to another computer.


Title: Re: Locate and remove Wallet.dat file
Post by: NeuroticFish on March 26, 2021, 10:34:22 AM
After making a proper backup copy of the wallet.dat, if you want to make sure you won't have headaches in the (probably far) future, you may want to completely wipe out wallet.dat.
Doing this will make it unrecoverable, hence you will be able to scrape/sell that HDD at some point.

I recommend SDelete (https://docs.microsoft.com/en-us/sysinternals/downloads/sdelete), since it's made by a company that was bought by Microsoft, hence you can be sure nothing shady goes on.