☎ +1 214-659-1775 Signal: +1 214-659-1775 [email protected]
Mon–Fri 9:00–18:30 MT · Denver, Colorado

Your wallet file is deleted, not corrupt: what to do in the first hour

David Veksler By David Veksler Aug 11, 2026 10 min read Guides

A corrupt wallet file and a deleted wallet file are different problems, and people routinely treat them as the same one. A corrupt file is still on the drive and will wait patiently while you think. A deleted file is being erased, slowly on some drives and within minutes on others, by the machine you are using to research the problem.

That is the whole reason this guide exists. Almost every irrecoverable deleted-wallet case I see was recoverable at the moment the person noticed, and stopped being recoverable during the hours they spent downloading tools onto the same drive.

Two rules before anything else. Do not type your seed phrase into a website, however official the recovery tool looks. Do not send a drive, a wallet file, or a seed to anyone who contacted you first. If you are working out who to trust, read how to tell a legitimate recovery service from a scam before you hand anything to anybody.

The first hour: stop writing to the drive

Locked out of a wallet like this one?

I repair hardware wallets, crack forgotten passwords, and rebuild broken seed phrases — on my own bench in Denver.

✓ NO FEE UNTIL YOUR CRYPTO IS BACK · FREE ASSESSMENT
Get a free assessment →

Deleting a file does not erase it. It marks the space as available. Everything that happens next is a race between you and whatever writes to that space first, and on a running operating system a great deal writes to it: browser cache, log files, Windows Update, the installer for the recovery tool you are about to download.

So, in order:

  1. Stop using the machine. If the wallet was on your system drive, shut the computer down. Do not "just check one thing" first.
  2. Do not install recovery software onto the affected drive. Install it on a second computer, or run it from a USB stick, and recover to a different drive.
  3. Take the drive out and work on it as a secondary drive, connected to another machine. A drive that is not booting an operating system is a drive that is not being written to.
  4. Make an image before you recover. A sector-by-sector image gives you unlimited attempts against a frozen copy. Working directly on the original gives you one attempt, and every failed attempt is a write.

Point four is the one people skip, and it is the one that matters most. If the drive is also failing, which is common in this situation, every additional read is a risk you spend on a tool you may have chosen wrongly. Image once, then experiment as much as you like.

Check whether it is actually deleted first

Before any carving, spend ten minutes on the cheap possibilities. A surprising share of "deleted wallet" cases are misplaced wallets.

If any of these produce a file, you are done with this article and you have a normal wallet-opening problem instead.

Does PhotoRec recover Bitcoin wallet.dat files?

Yes, and it will not call them wallet.dat. That single sentence resolves most of the confusion around this question, so it is worth stating before the explanation: PhotoRec does recover the file, and then hands it back to you under a generic name like f0012345.db. People search the output for "wallet", find nothing, and conclude the tool failed when it had already succeeded.

The reason is that PhotoRec has no wallet.dat signature at all. Its only Bitcoin-specific entry is .wallet for the Armory format, which is unrelated. But wallet.dat was never its own file format: a modern Bitcoin Core wallet is a SQLite database, and older wallets (and legacy wallets in current versions) are Berkeley DB files. PhotoRec carries signatures for both. So it carves your wallet as a database, because that is what your wallet is.

Why searching the recovery results for "wallet.dat" finds nothing

This is the part that confuses almost everyone, and it is the reason the free tools appear to fail when they have in fact succeeded.

There are two different kinds of recovery, and they behave completely differently.

Filesystem-aware undelete reads the filesystem's own records of recently deleted entries. It recovers the original filename and folder, so wallet.dat comes back as wallet.dat. It only works while those records survive, which usually means shortly after deletion and before a format.

File carving ignores the filesystem entirely and scans raw sectors for byte patterns that mark the start of a known file type. PhotoRec is the standard free carver, and its documentation is explicit about the tradeoff: it "ignores the file system and goes after the underlying data, so it will still work even if your media's file system has been severely damaged or reformatted."

The catch is that filenames live in the filesystem. A carver never sees them. Its output is a directory of thousands of files named f0012345.db, sorted by type. Your wallet is in there under a generic name, and if you search that pile for "wallet" you will conclude nothing was found.

It gets one step worse. PhotoRec's list of recovered formats has no wallet.dat signature at all. The only Bitcoin-specific entry is .wallet for the Armory wallet format. Bitcoin Core wallets are not carved as wallets, because they are not their own format: the current Bitcoin Core documentation describes wallet.dat as a "Personal wallet (a SQLite database) with keys and transactions," while older wallets, and legacy wallets in newer versions, are Berkeley DB files instead. PhotoRec carries signatures for both Berkeley DB and SQLite.

So the honest answer is the one at the top of this section: yes, and it arrives as an anonymous .db or .sqlite file among a great many others.

How to find your wallet in a pile of carved files

Once you understand that you are looking for a shape rather than a name, sifting the output becomes a normal job. What to look for, by wallet:

The practical method on a drive image is not to browse the carved output at all. It is to search the raw image for the structural markers of the format you want, then extract around the hits. That is slower to set up and dramatically more reliable, and it works on files that no signature list covers.

Deleted-wallet recovery odds on a spinning hard drive versus a solid state drive On a spinning hard drive a deleted wallet file usually survives for a long time and carving tools recover it, so make a sector image and take unlimited attempts. On a solid state drive TRIM wipes the freed blocks on the drive's own schedule, often within minutes, and no software can undo it; TRIM is on by default. Either way, stop writing to the drive immediately. The one fact that reorders a deleted-wallet case SAME DELETION, OPPOSITE ODDS SPINNING HARD DRIVE GOOD ODDS Deleting a file only frees the blocks; the bytes usually stay put for a long time Carving tools like PhotoRec routinely recover wallet files months later A sector-by-sector image gives you unlimited attempts SOLID STATE DRIVE RACE AGAINST TRIM TRIM lets the drive wipe freed blocks on its own schedule, often within minutes Enabled by default on NTFS; no software can undo a block the drive already erased Check it: fsutil behavior query DisableDeleteNotify (0 means TRIM was on) EITHER WAY stop using the drive now: every write is a chance to overwrite the keys.
The medium, not the tool, decides most deleted-wallet cases. On an SSD the clock starts the moment you delete.

The thing that actually decides your odds: HDD versus SSD

Everything above assumes the data is still physically present. On a spinning hard drive it usually is, for a long time. On a solid state drive it frequently is not, within minutes, and no software can change that.

The mechanism is TRIM. When you delete a file, the operating system tells the drive that those blocks are free, and the drive's own garbage collection wipes them on its own schedule, without waiting for anything to overwrite them. Microsoft's documentation describes delete notifications as the feature "that notifies the underlying storage device of clusters that have been freed due to a file delete operation," and states that "for systems using NTFS, trim is enabled by default unless an administrator disables it."

You can check what your system was doing. On Windows, in an administrator command prompt:

fsutil behavior query DisableDeleteNotify

A result of 0 means TRIM was enabled, which is the default and the bad news. A result of 1 means it was disabled, which improves your odds considerably.

This single fact reorders the whole triage. Deleted wallet on an old spinning drive, noticed quickly, is one of the better cases in this business. Deleted wallet on a TRIM-enabled SSD, noticed a week later, is one of the worst, and anyone who tells you otherwise while quoting an upfront fee is telling you what you want to hear. Realistic numbers for this and other situations are in recovery odds by scenario.

Phones behave like SSDs, and worse. Modern iPhone and Android storage is encrypted at rest, so deleted data is not merely marked free, it is unreadable once its key is discarded. Recovery there means app backups, iCloud or Google account data, and old computer backups, not carving.

Formatted, reset, or reinstalled

A quick format rewrites the filesystem table and leaves the data in place, which is the good case: carving works well on quick-formatted drives, exactly as PhotoRec's documentation claims for reformatted media. A full format writes over the whole volume, and a drive that was encrypted and then reset has had its key destroyed. Those last two are generally not recoverable by software, whatever a paid tool's marketing page implies.

Windows "Reset this PC" sits in between and depends on which option was chosen and what the drive is. It is worth an assessment rather than an assumption.

A fragment is not nothing

If carving returns a wallet file that is truncated or partly overwritten, do not throw it away. A wallet file is a container for keys, and keys are small. A partial Bitcoin Core wallet routinely still contains intact private keys that can be extracted directly, byte pattern by byte pattern, even when no software will open the file as a wallet. The technique, and the specific byte marker for Bitcoin Core keys, is described in the corrupt or deleted Bitcoin Core wallet guide.

The same logic applies across formats. "The file will not open" and "the keys are gone" are separate claims, and the second one needs much more evidence than the first.

What makes it permanent

The short list, so you can avoid all of it:

None of these are exotic mistakes. They are the normal things a competent person does when trying to fix a computer, which is precisely why deleted-wallet cases are so often lost by careful people.

When to hand it over

Hand it over when the wallet is worth more than the drive, when the drive is failing while you work, when the first careful attempt has already failed, or when you are about to run a tool you have not used before against the only copy of your data. The decision point is not difficulty. It is that a wrong move here is not reversible.

That is the service: corrupt and deleted wallet file recovery by David Veksler, through a Colorado-registered LLC, with a written contract, published pricing, a free assessment, and no fee until your crypto is back. In the first message, describe the drive, the wallet software, and what happened, not your secrets. A first assessment should never require your seed words or private keys.

If instead your coins were sent to somebody else's address by a thief or a scammer, this is not a data-recovery problem and no drive work will bring them back. The honest version of that situation is my Bitcoin was stolen, can you help.

Get your free assessment →

Sources

Deleted wallet file questions

Does PhotoRec recover Bitcoin wallet.dat files?

Yes, but it will not name them wallet.dat. PhotoRec has no wallet.dat signature; its only Bitcoin-specific entry is .wallet for the unrelated Armory format. What it does carry are signatures for Berkeley DB and SQLite, and a Bitcoin Core wallet is one of those two depending on its age.

So your wallet comes back as an anonymous file such as f0012345.db, sorted in with every other database on the drive. Searching the output for "wallet" returns nothing and people conclude the tool failed. It did not.

How do I find my wallet among thousands of carved files?

Look for a shape, not a name. A Bitcoin Core wallet is a .sqlite file if modern, a .db Berkeley DB file if legacy, and it is usually far larger than the incidental application databases around it. MultiBit HD wallets travel with mbhd.checkpoints and mbhd.spvchain neighbours, which is a strong signal you have found the right directory.

On a drive image, the better method is not to browse the carved output at all. It is to search the raw image for the structural markers of the format you want and extract around the hits. Slower to set up, dramatically more reliable, and it finds files no signature list covers.

Can a deleted wallet be recovered from an SSD?

Often not, and this is the single biggest factor in your odds. On a spinning hard drive a deleted file can survive for years. On a TRIM-enabled SSD the drive typically erases the blocks within minutes of the delete, and no software can recover what the controller has already zeroed.

This is why the honest first question about a deleted wallet is what kind of drive it was on, not what tool to run.

The recovered file is truncated. Is it worthless?

No. Do not throw it away. A wallet file is a container for keys, and keys are small. A partially overwritten Bitcoin Core wallet routinely still holds intact private keys that can be extracted byte pattern by byte pattern, even when no software will open the file as a wallet at all.

A fragment is a real recovery case. A fragment you deleted because it "looked broken" is not.

I already ran recovery tools on the drive. Have I ruined it?

Possibly, but usually not fatally, and it depends on what the tools wrote. The damaging pattern is installing recovery software onto the drive you are recovering, writing the recovered output back to the same partition, or running repair utilities such as chkdsk against the source before imaging it.

Stop now and stop using the drive, particularly as a boot drive. Then describe exactly what you ran. Knowing what has been written is most of the assessment.

David Veksler

David Veksler

Founder of WalletRecovery.info. Working in Bitcoin since 2013; recovering wallets for clients since 2017 through Veksler Consulting LLC (Colorado, USA). About David →

Locked out of your wallet?

Describe your situation and I'll tell you — for free — whether recovery is realistic. No fee until your coins are back.

Get a free assessment
+1 214-659-1775 · [email protected] · Mon–Fri 9:00–18:30 MT · Denver, Colorado