# Wallet.dat deleted

**URL:** <https://forum.zcashcommunity.com/t/wallet-dat-deleted/36948>\
**Category:** zcashd client\
**Created:** [July 30, 2020, 1:19am UTC](https://forum.zcashcommunity.com/t/wallet-dat-deleted/36948 "2020-07-30T01:19:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![csh2000](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@csh2000](https://forum.zcashcommunity.com/u/csh2000)\
**Post date:** [July 30, 2020, 1:19am UTC](https://forum.zcashcommunity.com/t/wallet-dat-deleted/36948/1 "2020-07-30T01:19:26Z")

</div>

Hello, I know this sounds stupid (at least I feel like that), but I am trying to get a solution.

I have lost wallet.dat from zecwallet.fullnode.0.9.15 (Windows10).

The rest of folder and files are in place.

I am trying to recover it, as I cutted it and pasted to an external disc, but no success for the moment.

I had ZEC in a shielded wallet.

Is there any other way to recover to founds?.

Thanks and best regards.

---

<div class="post-metadata">

**Author:** ![csh2000](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@csh2000](https://forum.zcashcommunity.com/u/csh2000)\
**Post date:** [July 30, 2020, 1:24am UTC](https://forum.zcashcommunity.com/t/wallet-dat-deleted/36948/2 "2020-07-30T01:24:50Z")

</div>

I mean, shielded address.

---

<div class="post-metadata">

**Author:** ![secured2k](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/secured2k/32/16408_2.png) [@secured2k](https://forum.zcashcommunity.com/u/secured2k)\
**Post date:** [July 30, 2020, 3:34am UTC](https://forum.zcashcommunity.com/t/wallet-dat-deleted/36948/3 "2020-07-30T03:34:39Z")

</div>

> [@csh2000](#):
>
> rest of folder and files are in place.
> 
> I am trying to recover it, as I cutted it and pasted to an external disc, but no success for the moment.
> 
> I had ZEC in a shielded wallet.
> 
> Is there any other way to recover to founds?.
> 
> Thanks and best regards.

You would need a back up of the wallet file or the plain text keys from the wallet to recover the funds. In an extreme case of file deletion, it may be possible to undelete or recover the data if it was not overwritten. The file could be overwritten if there was specialty security software that deletes data, or if the drive was in use and new data was written to the disk (this happens a lot in normal use; even when idle). Also, if the drive is a SSD, the drive or OS may be doing background TRIMs or garbage collection that will “overwrite” the data.

If the value of the lost coins is very valuable, then the drive must be removed from use (remove power immediately) and then forensically examined - usually by installing it in another system as read only with TRIM/background features disabled and then making an dump of the raw disk data to an image file to analyze for raw data recovery. This is best left for professional data recovery companies that may charge thousands of USD $ to try to recover the data with no guarantee.

---

<div class="post-metadata">

**Author:** ![Autotunafish](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/autotunafish/32/7827_2.png) [@Autotunafish](https://forum.zcashcommunity.com/u/Autotunafish)\
**Post date:** [July 30, 2020, 5:09am UTC](https://forum.zcashcommunity.com/t/wallet-dat-deleted/36948/4 "2020-07-30T05:09:51Z")

</div>

There may be a restore point in system properties/system protection (hopefully😬)(the feature will have had to have been activated beforehand and a restore point created while that info was in that folder otherwise theres no point in doing it, alot of times its automatic so youll have to check on all that)

---

<div class="post-metadata">

**Author:** ![csh2000](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@csh2000](https://forum.zcashcommunity.com/u/csh2000)\
**Post date:** [July 30, 2020, 7:21am UTC](https://forum.zcashcommunity.com/t/wallet-dat-deleted/36948/5 "2020-07-30T07:21:07Z")

</div>

Thanks both for your support, I will follow your advice. I had a good amount of coins there.

I use HW to store Zcash, but wanted to give a try to shielded addresses running a full node.

I think wallet.dat encryption and Ledger HW shielded addreses are works in progress, hope to see them soon implemented.

Thankyou and best regards.

---

<div class="post-metadata">

**Author:** ![daira](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/daira/32/43253_2.png) [@daira](https://forum.zcashcommunity.com/u/daira)\
**Post date:** [July 30, 2020, 9:13am UTC](https://forum.zcashcommunity.com/t/wallet-dat-deleted/36948/6 "2020-07-30T09:13:03Z")

</div>

If you have the `wallet.dat` file on an external disk, then do the following:

- Make sure ZecWallet is shut down.

- Copy the `wallet.dat` file from the external disk to the node’s data directory (the directory where `zcash.conf` is). Don’t move the file, keep the backup on the external disk. In the case of ZecWallet on Windows, the data directory on recent Windows versions would usually be `<Windows drive>:\Users\<username>\AppData\Roaming\Zcash`. If there’s an existing `wallet.dat` in the way, rename that one to `wallet.old` first.

- In the same directory, rename `zcash.conf` to `zcash.conf.txt` (accepting the prompt that this may make the file unusable, if you’re using the GUI). Double-click this file to edit it in notepad. Add the following lines at the end:

- Rename `zcash.conf.txt` back to `zcash.conf`.

- Run ZecWallet and wait for it to _fully_ resync. This may take several days depending on the speed of your network connection.

- After it has synced, shut down ZecWallet and make sure to reedit `zcash.conf` to remove the `reindex=1` and `resync=1` lines _before_ starting ZecWallet again.

(@adityapk00, is there a simpler way to pass the `reindex` and `resync` options to zcashd?)

---

<div class="post-metadata">

**Author:** ![csh2000](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@csh2000](https://forum.zcashcommunity.com/u/csh2000)\
**Post date:** [July 30, 2020, 5:36pm UTC](https://forum.zcashcommunity.com/t/wallet-dat-deleted/36948/7 "2020-07-30T17:36:16Z")

</div>

Thanks daira, I am trying to recover the file with recovery tools, but no success for the moment…

Best.
