Sticky Banner Visual Mobile 3

Don't miss the Spring Deal: Save up to 78% before April 21.

Don't miss the Spring Deal: Save up to 78% before April 21. Claim now!

Claim Now!
  • Before you start: How to maximize recovery chances
  • Method 1: Restore files from the Recycle Bin
  • Method 2: Recover deleted files using Windows File History
  • Method 3: Restore a previous version of a file or folder
  • Method 4: Recover deleted files with Windows Backup and Restore (Windows 7)
  • Method 5: Recover files from OneDrive or cloud backup
  • Method 6: Restore files with Windows File Recovery
  • Scenario-based recovery
  • How to prevent file loss in the future
  • FAQ: Common questions about recovering deleted files on Windows
  • Before you start: How to maximize recovery chances
  • Method 1: Restore files from the Recycle Bin
  • Method 2: Recover deleted files using Windows File History
  • Method 3: Restore a previous version of a file or folder
  • Method 4: Recover deleted files with Windows Backup and Restore (Windows 7)
  • Method 5: Recover files from OneDrive or cloud backup
  • Method 6: Restore files with Windows File Recovery
  • Scenario-based recovery
  • How to prevent file loss in the future
  • FAQ: Common questions about recovering deleted files on Windows

How to recover deleted files on Windows: Quick fixes that work

Featured 14.04.2026 15 mins
Shauli Zacks
Written by Shauli Zacks
Ata Hakçıl
Reviewed by Ata Hakçıl
Alpa Somaiya
Edited by Alpa Somaiya
how to recover deleted files on windows

Accidentally deleting a file on Windows doesn’t have to mean losing it forever. In most cases, Windows keeps copies you can get back through the Recycle Bin, File History, OneDrive, or its own file system, and most fixes take only a few minutes.

The key is to act quickly and use the right method for how the file was deleted.

This guide covers every option, from one-click restores to tools that work even after you've emptied the Recycle Bin.

Before you start: How to maximize recovery chances

Deleting a file doesn’t immediately erase its data. When Windows removes a file, it marks the storage space as available for reuse, but the actual data usually stays on the drive until something else overwrites it. That gap between deletion and overwriting is your recovery window.

How wide that window is depends on how the file was deleted.

How it was deleted What Windows does Recovery chances What you should do
Delete key or right-click > Delete Moved to Recycle Bin; stays there until emptied Very high Open Recycle Bin and restore
Shift + Delete Bypasses Recycle Bin; space marked as available Moderate Stop using the drive; try a backup or Windows File Recovery
Recycle Bin emptied File entry removed; data may remain until overwritten Moderate to low Don’t save anything new to the drive; try a backup or recovery tool immediately
Deleted from USB or external drive Often bypasses Recycle Bin immediately Moderate to low Unplug the drive and scan it with a recovery tool
Drive formatted File system removed; underlying data often intact Low Use Windows File Recovery in extensive mode or a recovery service

Quick tip: If you simply deleted a file, press Ctrl + Z in File Explorer to undo the deletion instantly. You can also right-click inside the folder where the file was and select Undo Delete. There are various limitations, though: these methods only work if the file was sent to the Recycle Bin, for the most recent action, and they reset if you close the window or restart. However, these are the fastest options when timing is on your side.

Method 1: Restore files from the Recycle Bin

This is the first place to check. When you delete a file using the Delete key or by right-clicking and selecting Delete, Windows moves it to the Recycle Bin instead of removing it permanently. It stays there until you empty the bin or it exceeds the storage limit.

Open the Recycle Bin, right-click on the file you want to recover, and click Restore. To recover multiple files, hold Ctrl while clicking each one, then right-click and choose Restore. Windows will move the file back to its original location.The file menu is open in the Recycle Bin, highlighting the Restore option.

What if the file isn’t there? Some actions bypass the Recycle Bin: deleting with Shift + Delete, deleting files that exceed the Recycle Bin’s size limit, deleting from a USB or external drive, or using a command-line tool. In those cases, move on to the methods below.

Method 2: Recover deleted files using Windows File History

File History is a Windows backup feature that automatically saves copies of your files to an external drive or a network location. If it was set up before the file was deleted, you can restore previous versions of that file, even if it was changed or overwritten.

File History backs up files in your standard user folders (like Documents, Pictures, Videos, Music, and Desktop), as well as in any folders you’ve added to a Windows library.

Note: File History isn’t enabled by default. If you haven’t set it up, there won’t be any backups to restore from. Skip to the setup instructions below if you need to enable it for future protection.

Restore a file using File History

  1. Type Control Panel in the Search bar and press Enter.Control panel is typed in the Windows search bar.
  2. Under System and Security, click Save backup copies of your files with File History.Windows Control Panel with Save backup copies of your files with File History highlighted.
  3. Click Restore personal files in the left-hand sidebar.The File History window of the Windows Control Panel is open, and Restore personal files is highlighted.
  4. Use the arrows at the bottom to browse through backup versions by date. Select the file you want to restore and click the green Restore button.Click the green Restore button to restore files using Windows File History.

How to enable File History

To use File History, you need an external drive or a network location. Windows can’t back up to the same drive your files are stored on, because a single drive failure would delete both your original files and any backups.

  1. Connect your external drive.
  2. Type File History in the Windows search bar and press Enter. Click Turn on. Windows will start backing up your files to the drive.The File History window in the Windows Control Panel shows the Turn on button highlighted.

Windows will start backing up your files automatically, once an hour by default. You can change the frequency and folders it monitors under Advanced settings.

Method 3: Restore a previous version of a file or folder

Windows can restore earlier versions of files or folders through the Previous Versions feature. This pulls saved copies from File History or from Volume Shadow Copy Service (VSS) snapshots, which are automatic system snapshots that Windows creates at certain points, such as before updates.

This method only works if either File History or System Protection (which manages restore points and VSS snapshots) was turned on before you deleted the file.

  1. Open File Explorer and go to the folder where the deleted file was.
  2. Right-click the folder. Select Show more options.The file menu window is open on Windows 11, and Show more options is highlighted.
  3. Click Restore previous versions.The expanded file menu window is open with Restore previous versions highlighted.
  4. In the Previous Versions tab, select a version dated before you deleted the file.An example of the Restore previous versions window.
  5. Click Open to preview the folder’s contents. Drag out the specific file you want to recover, or click Restore to replace the entire current folder with this version.An example of the Restore previous versions window with the Open and Restore options highlighted.

Tip: If you only need one file, always use Open to preview it first. Clicking Restore replaces everything in the folder with the older version, which could overwrite files you still need.

Method 4: Recover deleted files with Windows Backup and Restore (Windows 7)

This legacy tool still works in Windows 10 and 11. It’s a separate tool from File History, and the two serve different purposes.

Feature File History Backup and Restore (Windows 7)
What it saves Multiple versions of personal files Scheduled backups of files, folders, or a full system image
Best for Recovering a recent version of a changed or deleted file Restoring files or your entire system from an older backup
Recovery approach Restore individual file versions Restore files from a backup set or recover the whole system

Important: Like File History, Backup and Restore only works if you set it up before the file is deleted. If you haven’t configured it yet, you can set it up now to protect files going forward (see the setup note at the end of this section).

  1. Connect the external drive where the backed-up files are stored.
  2. Type Control Panel in the Search bar and press Enter.Control panel is typed in the Windows search bar.
  3. Under System and Security, click Backup and Restore (Windows 7).Windows Control Panel with Backup and restore (Windows 7) highlighted.
  4. Click Select another back-up to restore files from.Windows control panel with "Select another back-up to restore files from" highlighted.
  5. Select your external drive, choose the files or folders you want, pick a restore location, and click Restore.

To set up Backup and Restore for the first time, follow the steps described above, but in step 4, click Set up back-up and follow the on-screen instructions.

Method 5: Recover files from OneDrive or cloud backup

If you sync files to a cloud backup service such as OneDrive, Google Drive, Dropbox, or iCloud, you may be able to recover them directly from the cloud, even if you’ve deleted them from your computer.

Each service has its own trash folder with its own retention period. Check your provider’s settings to see how it keeps deleted files. For example, OneDrive keeps deleted files for either 30 days (personal accounts) or 93 days (work or school accounts).

Recover a file synced to OneDrive

If you deleted the file from your computer, but it was synced to OneDrive, it may still be there.

  1. Log into your OneDrive account and click My files in the left sidebar.The OneDrive homepage interface with My Files highlighted.
  2. Find the file or folder you want to recover, click the circle next to it to select it, and click Download in the menu bar.The OneDrive interface, with a folder selected and the Download option highlighted.
  3. Save the file to your computer.Microsoft Edge file download dialogue box.

Recover a file deleted from OneDrive

If you deleted the file from OneDrive itself, check the OneDrive Recycle Bin.

  1. Log into your OneDrive account and click Recycle Bin in the left sidebar.OneDrive interface with Recycle bin highlighted.
  2. Select the file you want to recover, and click Restore. This moves it back to its original folder in OneDrive.The OneDrive recycle Bin highlighting the Restore option.

Method 6: Restore files with Windows File Recovery

Windows File Recovery is a command-line tool from Microsoft that scans a drive for recoverable files. You can download it for free from the Microsoft Store.

The tool has two modes:

  • Regular: Best for recently deleted files.
  • Extensive: For older deletions, formatted or corrupted drives, or USB devices.

How to run a recovery

  1. Type Windows File Recovery in the Search bar and select Run as administrator.Searching for the Windows File Recovery program.
  2. Use one of the commands below, adjusting the drive letters for your situation. The basic command structure is winfr [source-drive]: [destination-drive]: /[mode] /n [filter], and the source and destination drives must be different. For example, if you’re recovering files from your C: drive, save the recovered files to another drive, such as E.
Action Command
Recover recently deleted files from a specific folder winfr C: E: /regular /n UsersYourNameDocuments
Recover a specific file type (for example, a Word document) winfr C: E: /regular /n *.docx
Deep scan a formatted or corrupted drive winfr C: E: /extensive
Recover photos from a specific folder winfr C: E: /extensive /n UsersYourNamePictures*.jpg
  1. When prompted, press Y to start the scan. Recovered files are saved to a folder called Recovery_[date and time] on the destination drive.

Scenario-based recovery

Data loss can occur in various ways, so the recovery method depends on how the files were lost.

The Recycle Bin is empty, and there’s no backup

If you emptied the Recycle Bin and don’t have File History, Backup and Restore, or cloud storage set up, your options are limited, but recovery may still be possible.

Use Windows File Recovery as soon as possible and don’t save anything new to the drive, as new data can overwrite the deleted files.

If that doesn’t work, a professional data recovery service may still be able to help, depending on how much of the data has been overwritten.

Files were permanently deleted with Shift + Delete

In this case, the file bypasses the Recycle Bin, but the data usually stays on the drive until something overwrites it. Stop using the drive immediately and try Windows File Recovery in regular mode first.

If you have File History or cloud backups, check those too. Sometimes a backup version exists even when the local file is gone.

Files disappeared after a Windows update or upgrade

Files aren’t usually deleted during a Windows update, but they can seem to vanish if Windows created a temporary user profile during the process.

Check whether you’re signed into the right account: go to Settings > Accounts and look for a message about a temporary profile. If you see one, restart and sign back into your usual account. Your files should reappear.

If they don’t, search your entire computer from File Explorer: press Windows + E, select This PC in the left sidebar, and use the search bar in the top-right corner.Searching for files from File Explorer.

Also, go to the View tab in File Explorer and make sure Hidden items is checked. Windows can mark files as hidden after updates.Going to the View tab in File Explorer to make sure Hidden items is checked.

You can also run the Windows troubleshooter (search for it in Windows Settings) to fix problems with file search.

Files deleted from a formatted drive

Formatting a drive removes the file system that tracks data, but the underlying files often survive until new data is written over them.

Use Windows File Recovery in extensive mode as soon as possible. The sooner you run it, the better your chances. For critical files, professional recovery services generally have a higher success rate.

Files deleted from a corrupted drive

If Windows shows errors when you try to open a drive or asks you to format it before use, the file system may be damaged. However, the data itself might still be intact.

Before running any repair tools, try to recover the data first. Windows File Recovery can often scan a corrupted drive and extract files even when it won’t open normally.

You can also try Windows’ built-in CHKDSK utility to scan for and repair file system errors:

  1. Type cmd in the Windows search bar and select Run as administrator.
  2. Type chkdsk C: /f (replace C: with the affected drive letter) and press Enter.Using Windows’ built-in CHKDSK utility to scan for and repair file system errors.

Note: Running repair tools on a failing drive can sometimes cause further damage. If the drive is making unusual sounds, isn’t being detected, or is very slow, recover the data first and repair later.

Files deleted from a USB or external drive

Files deleted from a USB device generally bypass the Windows Recycle Bin and are removed immediately. However, the data usually stays on the drive until something overwrites it. Unplug the device right away and don’t write anything to it.

Connect the USB drive to your computer and use Windows File Recovery in extensive mode to scan it, saving any recovered files to a different drive.

Files lost from a crashed Windows PC

A system crash usually affects the operating system, not the data stored on the drive. Your files may still be perfectly intact.

There are two options worth trying:

  • Remove the drive: Connect it to a working computer using a USB-to-SATA adapter or an external enclosure. You should be able to browse the drive and copy your files to another location.
  • Boot from a recovery environment: A Windows recovery drive or a bootable USB drive lets you access the file system without needing Windows to start properly.

A recovered file won’t open

This usually means the file was partially overwritten before recovery: some of the data is there, but not all of it. Try opening the file in the application that created it, and make sure that the application is up to date.

If it still won’t open, there are file repair tools you can download for common formats (such as Word documents, PDFs, and photos) that can sometimes reconstruct enough of the file to make it usable.

Windows Search can’t find the files

Windows uses an index to locate files quickly. If it’s outdated or corrupted, files on the drive may not show up in search results. To rebuild it, go to Settings, search for Indexing Options, click Advanced, then click Rebuild. After it finishes, try searching again.The advanced Windows Indexing Options are open, with the Rebiild button highlighted.

How to prevent file loss in the future

Recovery only works if the data hasn't been overwritten. The best protection is not needing to recover in the first place.

Follow the 3-2-1 backup rule

Keep three copies of your important data: two on different storage types (for example, an internal drive and an external drive) and one stored off-site or in the cloud. If one copy is damaged or lost, the others are still there.

This approach protects against hardware failure, accidental deletion, ransomware, and physical disasters like a fire or flood.

Windows backup tools to set up now

Each of these only takes a few minutes to set up and can save you hours of recovery effort later:

  • File History: Connect an external drive, type File History in the search bar, and turn it on. Windows will automatically start backing up your Documents, Pictures, Videos, Music, and Desktop.
  • OneDrive folder backup: Go to OneDrive Settings > Sync and backup > Manage backup. Select the folders to sync to the cloud. This gives you an off-site copy of your key files that you can access from any device.
  • System Protection (restore points): In Windows Settings, search for Create a restore point, select your main drive, and click Configure to enable it. Windows will create snapshots of system files and settings that can also help restore previous versions of files.
  • Backup and Restore: For a full system image backup, open Control Panel and set up Backup and Restore (Windows 7). This is the most comprehensive option; it can restore your entire system, not just individual files.

FAQ: Common questions about recovering deleted files on Windows

Where do deleted files go on Windows?

When you delete a file using the Delete key or right-click + Delete, Windows moves it to the Recycle Bin, where it stays until you empty the bin or it exceeds the size limit.

Deleting with Shift + Delete, or deleting a file that’s too large for the bin, bypasses this step and marks the storage space as available. However, the data usually stays on the drive until something new overwrites it.

Can I recover permanently deleted files on Windows?

Often, yes, as long as you act quickly and don’t write anything new to the drive. The file data generally stays there until new data overwrites that space. Check any backups you have first (File History, Backup and Restore, or OneDrive), then try Windows File Recovery if you don’t have any.

Can I recover deleted files on Windows for free?

Yes. Windows has several free ways to recover files, such as restoring them from the Recycle Bin, File History, or Backup and Restore (if previously set up), and Windows File Recovery from the Microsoft Store. Success depends on whether a backup exists or whether the data has already been overwritten.

Can I recover files after emptying the Recycle Bin?

Often, yes. Emptying the Recycle Bin removes the file’s entry from the file system but doesn’t immediately erase the underlying data. Recovery tools or backups may still be able to restore the file until that storage space is reused.

Can I recover deleted files from a USB drive?

Files deleted from a USB drive usually bypass the Windows Recycle Bin, but the underlying data often remains until it’s overwritten. Stop using the device immediately and use Windows File Recovery or another recovery tool to scan it. Save recovered files to a different drive.

How long are deleted files recoverable on Windows?

There’s no fixed window. It depends on how much you’ve used the drive after deletion. On a busy system drive, new data can overwrite deleted files within minutes. On a drive you rarely write to, files can remain recoverable for days or longer. The most important thing is to stop using the drive as soon as you realize a file is missing.

What's the difference between File History and Backup and Restore?

File History continuously saves multiple versions of your personal files, so you can go back to any saved point in time. Backup and Restore creates scheduled snapshots of files, folders, or your entire system, which you can use to restore things to a specific date. Using both gives you the best coverage: File History for granular version recovery and Backup and Restore for full system restoration.

Take the first step to protect yourself online. Try ExpressVPN risk-free.

Get ExpressVPN
Content Promo ExpressVPN for Teams
Shauli Zacks

Shauli Zacks

Shauli Zacks is a cybersecurity writer at ExpressVPN who specializes in online privacy, VPNs, and emerging digital trends. With years of experience researching and reviewing security tools, he’s passionate about helping readers take control of their data and understand the tech shaping their world. When he isn’t writing, Shauli enjoys running, traveling, and testing new gadgets.

ExpressVPN is proudly supporting

Get Started