Skip to main content
+31 85 109 1211 Beware of impersonators — verify our official details Verify official details

Case study

Deleted Bitcoin Core wallet.dat recovered

Bitcoin Core · Not disclosed

Short answer

Deleting a file removes the pointer to it, not the data. On a traditional hard drive that data waits until something overwrites it — which is why the single most useful thing you can do after deleting a wallet is stop using the drive immediately. On an SSD, TRIM can close that window within minutes.

Wallet
Bitcoin Core
Era / version
Not disclosed
Access problem
Wallet file accidentally deleted from the computer and the trash bin.
Material remaining
The deleted file and the client's account context; recovered via forensic file recovery.
Technical challenge
Recovering deleted file data after deletion from both locations, then handling the wallet format.
Assessment
File-level recovery judged possible; proceeded under agreement.
Recovery approach
Forensic imaging of the drive to freeze its state, file-carving of the deleted wallet.dat from unallocated space, then standard wallet access restoration. All work performed on the image, never on the original media.
Outcome
Access restored. The wallet.dat was reconstructed from unallocated space on a forensic image, then opened normally — the original drive was never written to.
Anonymisation
full - published as an embedded example without identifying details.
Author
Robbert Bink
Date
2025-08-19

The case

At first it looked like a dead end: the wallet file had been deleted from the computer and then emptied from the recycle bin — two places, and nothing left in either. The client still had the account context and knew roughly when the deletion had happened. That timing turned out to matter more than anything else.

Deleted Bitcoin Core wallet.dat recovered

Deleting a file does not erase it

When you delete a file, the operating system removes the directory entry that points to it and marks its blocks as available. It does not go and scrub those blocks. On a traditional hard drive the data remains physically present — as magnetic flux on the platters — until something else is written over it.

That is the entire window recovery works in, and it closes as the drive gets used. Every download, every update, every temporary file is a chance for the operating system to reuse exactly the blocks your wallet used to occupy.

This drive had been used sparingly since the deletion. That is the reason this case succeeded.

The SSD exception, stated honestly

The picture is very different on modern solid-state drives, and it would be dishonest to describe this case without saying so.

When a file is deleted on an SSD, the operating system typically issues a TRIM command telling the drive's controller that those blocks are no longer in use. Background garbage collection then erases the underlying NAND cells. Once that has happened, recovery becomes difficult or impossible — the exact outcome depends on the drive's firmware, but it is not something to count on.

TRIM is also not universal. It requires both the drive to support it and the operating system to ask for it, and there are real gaps: Windows does not issue TRIM on FAT32 or exFAT volumes, most hardware RAID controllers do not pass it through, many external drives connected over USB never receive it, and older SSDs predating the command ignore it entirely. A wallet sitting on any of those may still be recoverable.

These are exceptions to check, not to rely on.

The practical rule is the same either way, and it is urgent: stop using the device the moment you notice the deletion. Do not install recovery software onto the affected drive — that alone can overwrite what you are trying to save.

What we did

We imaged the drive first, to freeze its state and guarantee that nothing we did could make matters worse. All work then happened on that image; the original was never written to.

From the image we carved the deleted wallet.dat out of unallocated space. A legacy Bitcoin Core wallet is a Berkeley DB file with recognizable structure, which is what makes it identifiable among raw blocks rather than just an anonymous run of bytes. (Newer descriptor wallets use SQLite instead, the default since Bitcoin Core v23 — a different structure, but the same principle.)

With the file reconstructed, restoring access was routine.

What would have made this case impossible

  • Continued heavy use of the drive. Days of normal computer use after a deletion usually ends the case.
  • An SSD that had TRIMmed the blocks. Recovery is not slower in that situation; it is over.
  • Running recovery tools on the affected drive. The most common way people destroy their own recoverable data.
  • A reformat with a full (non-quick) format, or a drive that has since been encrypted.

What this means if you are in the same position

Power the machine down. Do not "have a quick look." Do not install anything. If the wallet mattered, the drive is now evidence, and the correct first action is to preserve it rather than investigate it.

Preservation beats every recovery tool. See the safety & forensics reference and the wallet formats guide.

Sources

Start your recovery

The assessment is free and needs no sensitive material. Describe what you still have and we will review whether recovery is realistic. You only pay if the recovery succeeds.

Request an assessment+31 85 109 1211

About the author

Robbert Bink

Robbert Bink

Founder & wallet recovery specialist

Completed his first successful wallet recovery in 2019. More than 15 years in programming and IT; leads case assessment, recovery strategy and specialist software development.

Read the full profile →