Accidentally deleting an important file is one of those moments that causes an instant sinking feeling. The good news: in most cases on Windows 11, deleted files can be recovered — and there are several places to look before concluding the file is gone for good. Work through these in order, starting with the quickest options.
Step 1: Check the Recycle Bin
If you deleted the file using Delete or right-click → Delete, it goes to the Recycle Bin first. Open the Recycle Bin from your desktop, find the file, right-click it, and select Restore. It will return to its original location.
If you can’t find it by scrolling, click the Name column header to sort alphabetically, or use the search box in the top right.
Note: if you deleted the file using Shift + Delete, or if you’ve emptied the Recycle Bin since deleting it, the file won’t be here.
Step 2: Check OneDrive (If You Use It)
If the file was in a OneDrive folder, it was synced to the cloud — and OneDrive keeps a recycle bin of its own, separate from Windows. Even if you’ve emptied the Windows Recycle Bin, the file may still be recoverable from OneDrive’s online recycle bin.
- Go to onedrive.live.com and sign in with your work or personal Microsoft account
- Click Recycle bin in the left sidebar
- Find and restore the file
OneDrive keeps deleted files for 93 days. This is often a lifesaver.
Step 3: Check SharePoint or Teams (For Work Files)
If the file was in a Microsoft Teams channel or a SharePoint library, the same applies — SharePoint has its own recycle bin accessible via the browser. Go to your SharePoint site, scroll to the bottom left, and click Recycle bin. Files deleted from Teams channels are stored here.
Step 4: Use Windows File History (If Enabled)
File History is a Windows backup feature that automatically saves copies of your files at regular intervals. If it was configured on your PC, you can restore a previous version of a file — even if you’ve edited and saved over it.
- Navigate to the folder where the file was stored
- Right-click the folder and select Properties
- Click the Previous Versions tab
- If backups exist, select a version and click Restore
This only works if File History was turned on before the file was deleted. Many home PCs don’t have it enabled — see the prevention section below.
Step 5: Restore from a Previous Version (Shadow Copy)
Windows 11 creates shadow copies (restore points) automatically on most systems. You can access previous versions of files through the same Previous Versions tab in folder properties. Shadow copies are stored locally on the drive, so this won’t help if your drive has failed — but for accidental deletion, it often recovers the file.
Step 6: Use File Recovery Software
If none of the above has worked, file recovery software can sometimes recover deleted files by scanning the raw drive for data that hasn’t yet been overwritten. Free options include:
- Recuva (by Piriform/Avast) — straightforward, free, good for most situations
- TestDisk / PhotoRec — more powerful, open source, command-line based
Important: stop using the PC as much as possible once you realise a file is missing. Every file you write to the drive risks overwriting the deleted data and making recovery impossible. Run the recovery tool before opening more applications or downloading anything.
Recovery is not guaranteed — if the storage location has been overwritten, the file is gone. SSDs are also harder to recover from than traditional hard drives due to the TRIM feature.
If the Drive Has Failed
If the file is missing because the hard drive has failed (the PC won’t boot, or Windows reports drive errors), do not attempt to run recovery software yourself. Power off the machine immediately and contact a professional data recovery service. Continued use of a failing drive can make data recovery impossible or much more expensive.
How to Prevent This in Future
The best recovery is the one you never need:
- Store work files in OneDrive or SharePoint — Microsoft 365 cloud storage keeps deleted files for 93 days and maintains version history
- Enable File History — Settings → Update & Security → Backup → Add a drive
- Follow the 3-2-1 backup rule — three copies of data, on two different media, with one offsite


