Drive Sweeper
Windows 10 & 11 Buy license · $29.95
Troubleshooting

Deleted the Wrong Files During a Cleanup? How to Get Them Back

Need to recover files deleted by Disk Cleanup or Storage Sense? What can come back, where to look first, and how to clean up safely next time with an undo.

Updated 5 minute read The Drive Sweeper team

Files removed by Disk Cleanup or Storage Sense do not go to the Recycle Bin, so you cannot simply restore them. To get them back, stop saving new files to the drive straight away, then check every place a copy might still exist: your backups and File History, OneDrive or other cloud storage and its own recycle bin, your browser's download history, email attachments and other devices. If none of those has a copy, a recovery tool such as Microsoft's Windows File Recovery may find the deleted data, but success is much less likely on an SSD. The good news is that cleanup tools mostly remove disposable files, so check first what was actually ticked.

Step 1: Work out what was deleted

Most categories in Disk Cleanup and the Temporary files page are system data that Windows can recreate, such as update leftovers and thumbnails. Losing those does no harm. Personal files are usually lost through one of these:

What was tickedWhat it removed
Downloads (Settings or Disk Cleanup)Everything in your Downloads folder
Recycle BinEverything you had deleted earlier but not yet emptied
Storage Sense Downloads timerDownloads not opened within the period you set
Storage Sense Recycle Bin timerRecycle Bin items older than the period you set
Previous Windows installation(s)Windows.old, which may have held files from your old profile

Storage Sense can also make OneDrive files online-only. That is not deletion: the files are still in OneDrive and show a cloud icon. Double-click one to download it again.

Step 2: Stop writing to the drive

When Windows deletes a file, it marks the space as free but does not immediately overwrite it. Anything you save, install or download afterwards may land in that space and destroy what was left. Until you have finished trying to recover:

  • Do not install recovery software onto the same drive if you can avoid it.
  • Do not download large files, install updates or run more cleanups.
  • Save any recovered files to a different drive, such as a USB stick or external disk.

Step 3: Check for copies you already have

This is where most people actually get their files back.

File History and backups

If File History or another backup was set up, right-click the folder that held the files (for example Downloads) and choose Properties > Previous Versions, or open your backup software and browse to the date before the cleanup. Copy what you need back.

OneDrive and other cloud storage

If the folder was synced, open the cloud service in a browser and check its own recycle bin. OneDrive keeps deleted items for a period before removing them for good. Other services have similar features.

Browser download history

Press Ctrl + J in your browser to open the download list. It shows where each file came from, so you can often download it again from the original site.

Email and messaging apps

Many files in Downloads arrived as attachments. Search your email for the file name and save the attachment again.

Other devices and drives

Photos may still be on your phone or camera card. Documents may be on a work PC, a USB stick or with the person who sent them.

Step 4: Try a recovery tool

If no copy exists, recovery software can scan the drive for deleted data that has not been overwritten yet. Microsoft's own option is Windows File Recovery, a command-line tool available from the Microsoft Store for Windows 10 and 11.

  1. Install Windows File Recovery from the Microsoft Store.
  2. Connect a second drive to save recovered files to. The tool requires the destination to be a different drive from the source.
  3. Open it from the Start menu (it runs as administrator) and run a command such as winfr C: E: /regular /n \Users\YourName\Downloads\, replacing E: with your destination drive and YourName with your account folder.
  4. Check the recovered files in the folder it creates on the destination drive.

See Microsoft's documentation for the tool's other modes and switches if the first attempt finds nothing.

Why SSDs are harder

Most modern PCs use SSDs, which use a feature called TRIM to tell the drive which blocks are no longer needed. The SSD then clears those blocks in the background, often within minutes. Once that has happened, the data is gone and no software can bring it back. Recovery is far more likely on traditional hard drives, USB sticks and memory cards.

If the files were on a USB stick or memory card

Removable drives usually do not use TRIM, so deleted files often survive longer there. Remove the stick or card safely, do not copy anything new onto it, and run the recovery tool with a destination on your PC's internal drive instead.

Step 5: If the files really are gone

Sometimes nothing works. At that point, focus on recreating what matters most: request new copies of receipts and tickets from the companies that sent them, re-download installers from their publishers, and ask friends or family for photos they shared with you. Then set up a backup so it cannot happen the same way again.

How to clean up safely next time

The root problem is that Windows' cleanup tools delete permanently and in bulk. A few habits prevent a repeat:

  • Never tick Downloads or Recycle Bin in Disk Cleanup or the Temporary files page without looking inside them first.
  • Leave Storage Sense's Downloads timer on Never unless Downloads holds nothing you care about.
  • Turn on a backup, such as File History to an external drive or a cloud backup, for your personal folders.
  • Use a cleanup tool with an undo. Drive Sweeper moves removed files to its restore area for 30 days, so you can bring anything back in one click. Every item is labeled safe, review or keep, and nothing is removed until you approve it.

Drive Sweeper also targets the space Windows' tools leave behind, such as duplicate files, huge files and old downloads, which means you can recover more space without reaching for the risky Downloads checkbox at all. For what each built-in tool removes, see Disk Cleanup vs Storage Sense, and for a reminder of what is genuinely safe, read is it safe to delete temp files?

Frequently asked questions

Do files deleted by Disk Cleanup go to the Recycle Bin?

No. Disk Cleanup and Storage Sense delete files permanently, so the Recycle Bin will not have them.

Can I recover deleted files from an SSD?

It is much harder than on a hard drive. SSDs use TRIM to clear deleted blocks quickly, so a backup or a cloud copy is usually the only reliable way back.

Should I keep using my PC after deleting files by mistake?

Use it as little as possible. Every new file written to the drive can overwrite the space where the deleted files were, which makes recovery less likely.

Get three guides like this every month, plus software update notices.Subscribe →