DiskMend

Updated 2026-11-15 · 5 min read

How to recover deleted files in Windows 10 and 11

Deleted a file on Windows 10 or 11? Check these places in order — Recycle Bin, undo, File History, OneDrive — and if none has it, recover it from the disk before it is overwritten.

A deleted file in Windows is rarely gone at once. Depending on how it was deleted, it may be waiting in the Recycle Bin, in a backup you forgot about, or still on the disk itself, just no longer listed.

This guide goes through every place to look, from the quickest to the most thorough, and explains when recovery software is the only option left.

1. Look in the Recycle Bin

Open the Recycle Bin from the desktop, sort by Date Deleted and right-click the file, then choose Restore. It goes back to its original folder.

The Recycle Bin only receives files deleted from internal disks with the Delete key. Files deleted from USB flash drives, SD cards and most network locations are removed immediately.

2. Undo, search and cloud copies

If you deleted the file a moment ago, press Ctrl+Z in the same File Explorer window. If you are not sure it was deleted, search for its name from the Start menu — it may have been moved.

Files inside a OneDrive, Google Drive or Dropbox folder also go to that service's own recycle bin on the web, which keeps them for weeks (OneDrive personal accounts keep them for 30 days).

3. File History and Previous Versions

If File History was set up, open the folder where the file was, click Home › History (Windows 10) or right-click the folder › Properties › Previous Versions, and pick a copy from before the deletion.

These features keep copies only from the moment they were switched on. If the list is empty, Windows had no backup of the file.

4. Recover it from the disk

When none of the above has the file, the content is usually still on the disk. On NTFS, Windows marks the file's record in the Master File Table as unused and the clusters it occupied as free — nothing is erased at that moment.

Recovery software reads those unused records directly and rebuilds the file with its name and folder. If the record has already been reused, it can still find many file types by their content.

  • Microsoft's free Windows File Recovery (winfr) works from the command line and needs the right mode and switches for each case.
  • Graphical tools such as DiskMend scan the drive read-only, show what was found with a preview and tell you which files are intact before you save anything.

What lowers your chances

Every file written to the same disk after the deletion can take the space your file used. Browsing, downloading and installing programs all write to the system disk. On SSDs, Windows also sends a TRIM command that lets the drive erase deleted blocks soon after deletion, which makes recovery much harder than on hard disks and USB sticks.

Step by step

  1. 1

    Check the Recycle Bin

    Sort by Date Deleted, right-click the file and choose Restore.

  2. 2

    Try undo and search

    Press Ctrl+Z in the same Explorer window, or search the file name from the Start menu.

  3. 3

    Check cloud and backups

    Look in the OneDrive or other cloud recycle bin and in File History or Previous Versions.

  4. 4

    Stop writing to the disk

    Do not install programs or save downloads to the disk the file was on.

  5. 5

    Scan with recovery software

    Install the tool on another drive, scan the affected disk and preview the results.

  6. 6

    Save to another drive

    Save the recovered files to a different disk so nothing overwrites the rest.

Where a deleted file goes in Windows
How it was deletedRecycle BinContent still on diskBest next step
Delete key on an internal HDDYesYesRestore from the Recycle Bin
Shift+Delete or emptied Recycle BinNoYes, until overwrittenRecovery software
Deleted from a USB stick or SD cardNoYes, until overwrittenRecovery software
Deleted on an SSD with TRIM onOnly if not emptiedOften erased within minutesRecycle Bin or backup
File in a OneDrive folderYes, plus onlineYesOneDrive recycle bin on the web

Frequently asked questions

Are deleted files really gone in Windows?+

No. Windows marks the space as free but leaves the content on the disk until it is overwritten, so recently deleted files can often be recovered.

Can I recover files deleted months ago?+

Sometimes. It depends on how much has been written to the disk since. A rarely used external drive keeps old files much longer than the system disk.

Does Windows have a built-in recovery tool?+

Windows File Recovery (winfr) is a free command-line tool from Microsoft. It has no preview and needs specific switches for each file system and case.

Is it safe to install recovery software on the same disk?+

It is better not to. Install and save to a different drive so the installation does not overwrite the files you want back.

Can I see what can be recovered before paying?+

Yes. DiskMend scans and previews for free; a license is needed only to save the files.

Guides

More guides

Guides →