Local Tech Fix (626) 655-0020
All articles

Accidentally Deleted a File? How to Get It Back on Windows — Before You Pay for "Recovery" Software

July 18, 2026

The right first move is to stop and check four free places most people skip — the Recycle Bin, File History, OneDrive, and Microsoft's own recovery tool — before you hand your money, or your drive, to a "data recovery" download.

text
Photo by David Pupăză on Unsplash

Deleting the wrong file — or emptying the Recycle Bin and realizing a second too late that something important was in it — is one of those small disasters that feels much bigger than it is. Take a breath: on a Windows PC there's a good chance it's recoverable, and the tools that get it back are usually free and already on your computer. The catch is that what works depends heavily on how the file was deleted and what kind of drive it lives on, and the search results for "recover deleted files" are dominated by paid programs that would rather you didn't know the free paths first. This guide walks the honest order, easiest and safest to last resort.

First, make sure this is the right guide. If your missing photos are on a camera or phone memory card, our guide on an SD card that won't read and recovering its photos is the one you want. If a whole external drive has stopped showing up, start with our external-drive guide — the drive isn't deleted, it's just not appearing. If you're here because you're trying to clear space and free-space isn't going down after you delete things, that's the opposite problem, and our guide to a full C: drive covers it. This article is specifically about getting back a file or folder you deleted by mistake on the PC itself.

The one rule that decides whether you get it back: stop using the drive

Here is the single most important thing on this page, and almost every "10 ways to recover" list buries it: when you delete a file and empty the Recycle Bin, Windows does not immediately erase the data. On a traditional hard drive it just marks that space as "available" — the file's contents sit there, invisible, until something new happens to be written on top of them. That's why undelete tools can work at all. But it also means that every minute you keep using the computer — downloading, installing, even just browsing — risks writing new data over the file you want back.

So if a file you truly can't lose has just gone, and it isn't in the Recycle Bin, the smartest move is to slow down: don't install a recovery program onto the same drive, don't save big downloads, and if it's the only drive in the machine and the file is genuinely irreplaceable, consider shutting down and getting help rather than gambling. When you do run any recovery tool, always recover the file to a different drive (a USB stick or a second disk) — never back onto the same drive you're rescuing it from, because that write can overwrite the very thing you're trying to save.

Start with the Recycle Bin — and why the file sometimes isn't in it

The obvious first stop, but worth doing properly. Open the Recycle Bin from the desktop (or type "recycle bin" into the Start menu), and if you've got a lot in there, click the "Date deleted" or "Original location" column to sort, or type the file's name into the search box in the top-right. Found it? Right-click it and choose Restore — Windows puts it back exactly where it was, not in a random folder. You can select several at once, or use Ctrl+A to restore everything.

If it's not there, that's not the end of the road — but it tells you something. The Recycle Bin only catches ordinary deletions from your main drives. It does not catch files you deleted with Shift+Delete (that skips the bin on purpose), anything deleted from a USB stick, SD card, or a network/shared drive, files too large for the bin's size limit (they're removed immediately), or things a program deleted on its own. And of course an emptied bin is empty. If any of those is your situation, move on to the next steps — the file may still be recoverable another way.

Check File History and "Previous Versions"

Windows has a built-in backup called File History that quietly keeps copies of files in your Documents, Pictures, Desktop, and other personal folders — but only if it was switched on before the file was deleted. If you (or whoever set up the PC) turned it on, this is often the cleanest recovery of all. Open the Start menu, type "Control Panel," go to System and Security > File History, and click "Restore personal files" on the left. You get a browser-like window with back/forward arrows to step through time; find the version from before you deleted the file, select it, and click the green round Restore button.

Even without opening File History directly, you can right-click the folder that used to contain the file, choose "Restore previous versions" (or Properties > the "Previous Versions" tab), and pick a version of the folder from before the deletion — then open it and copy your file out. Previous Versions is fed by File History and by System Restore points, so it sometimes has copies even when you don't remember setting anything up. If both come up empty, it means neither was ever enabled — a good reason to turn on File History today so next time this is a two-click fix rather than a scramble.

If the file lived in a OneDrive folder, check the cloud

On a lot of modern Windows 11 PCs, your Desktop, Documents, and Pictures folders are actually backed up to OneDrive without people fully realizing it — which is good news here, because OneDrive keeps its own safety net. Go to onedrive.com in a browser, sign in, and open the Recycle Bin from the left-hand menu. Deleted files sit there and stay recoverable for 30 days on a personal Microsoft account (longer, typically 93 days, on a work or school account) — select the file and click Restore. This is separate from the Windows Recycle Bin on your PC, so it's worth checking even if the local bin was already emptied.

OneDrive also keeps version history: if the problem isn't a deleted file but a good document that got overwritten or wrecked by a bad edit, right-click it (in the OneDrive website or in File Explorer) and choose "Version history" to roll back to an earlier copy. One honest caveat: OneDrive is sync, not a true backup — if you deleted the file everywhere, that deletion synced too, and the recycle bin's clock is ticking — so don't treat it as your only line of defense.

Microsoft's own free tool: Windows File Recovery

Before you pay for anything, know that Microsoft makes a free recovery tool. It's called Windows File Recovery, you install it from the Microsoft Store (it works on Windows 10 version 2004 and newer, and on Windows 11), and it can sometimes pull back files that are gone from the Recycle Bin and File History. The honest downside: it has no friendly window — it runs entirely from typed commands — so it's a bit fiddly, and results are never guaranteed.

The pattern is winfr source-drive: destination-drive: /mode /n path — and the destination must be a different drive. For a file you deleted recently from a healthy drive, use Regular mode: for example, winfr C: D: /regular /n \Users\YourName\Documents\report.docx searches your C: drive and writes any recovered copy to a D: drive (a USB stick works). For older deletions, a formatted USB stick or SD card, or a drive that's misbehaving, swap /regular for /extensive, which digs deeper and also handles the FAT/exFAT drives that cameras and thumb drives use. Watch the small stuff: keep the colon after each drive letter, put a space between the two drives, and end a folder path with a backslash. It won't win a design award, but it's free, it's from Microsoft, and it costs you nothing to try before you consider a paid option.

The truth about paid "recovery" software — and the SSD catch nobody mentions

The ads are relentless: Recuva, Disk Drill, EaseUS, Stellar and a dozen others promising to "recover any deleted file." Some of these are genuinely capable tools, and most let you run a free scan first that shows what's findable before you pay to actually save it — which is exactly how you should use them. Never pay up front on a promise; run the free scan, confirm your file is in the results and previewable, and only then decide. And install the program to a different drive than the one you're recovering from, for the same overwrite reason as before.

But here's the accuracy point those ads will never lead with, and it changes everything: on a modern SSD (the fast, silent storage in nearly every laptop and PC sold in the last several years), deleted files usually can't be recovered by any software at all. SSDs use a feature called TRIM that physically wipes the emptied blocks within seconds to minutes of a deletion, as housekeeping — so once a file leaves the Recycle Bin on an SSD, the data is typically gone for good, and any tool claiming to "recover" it is mostly selling hope. Old-style spinning hard drives (and the external USB drives and SD cards that still use them or use simple flash) are the opposite: the data lingers until overwritten, so undelete tools often work there. Not sure which you have? If your PC boots in a few seconds and has no moving parts, it's almost certainly an SSD — which means your realistic hope is the Recycle Bin, File History, OneDrive, or a backup, not an undelete program. That's the honest version the "recovery software" search results won't give you.

When it's worth a professional — and the Mac version in a sentence

A couple of situations are worth handing to a person rather than fighting alone. If the files are truly irreplaceable — the only copies of wedding photos, a business's records, a thesis — and they're not turning up in any of the free spots, stop experimenting: every extra bit of DIY on the drive lowers the odds. And if the drive itself is failing — clicking, freezing, throwing errors, or dropping in and out — that's a hardware-recovery job for a lab or a specialist, not a download, and continuing to power it on can finish it off. A professional recovery can be expensive, so it's a decision to make honestly against how much the data is really worth; a good local tech will tell you plainly whether it's a quick job or a specialist case before you spend anything.

On a Mac the principles are identical, just with different names: deleted files go to the Trash (restore from there first), and if you had Time Machine running, you can enter Time Machine, browse back to a date before the deletion, and restore the file. Same golden rule applies — the sooner you stop using the disk, the better your odds.

How we can help

The pattern that recovers most accidentally deleted files is a free, built-in order: check the Recycle Bin, then File History and Previous Versions, then OneDrive's online recycle bin and version history, then Microsoft's free Windows File Recovery — and know that on an SSD your best hope is those safety nets rather than undelete software. Above all, stop writing to the drive the moment you realize a file is gone, and never recover onto the same drive.

If the file is one you genuinely can't lose and it isn't turning up — or the drive is acting sick and you don't want to make it worse — that's exactly the kind of careful job we take on. We help homes and small businesses across Southern California and the Coachella Valley recover deleted files, rescue data from failing drives, set up a real backup so it never happens again, and — because we don't sell you a subscription you don't need — we'll tell you honestly whether it's a five-minute restore, a case for a recovery lab, or a file that's truly gone. The best time to fix this, though, is before it happens: a working backup turns "I deleted it" from a crisis into a shrug.

Keep reading

Free calculators

Service areas we cover

Want a second opinion before you buy?

We don't sell hardware or warranties — call and we'll tell you what's worth buying and upgrading.

Call (626) 655-0020

Gear we recommend

All gear →

Need help with your website?

For web-side work — site builds, speed fixes, hacks, broken plugins, hosting issues — head to our sister site.

Visit HelpWithWeb.com →