Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
Redmond desk5 min

How to Recover Files Accidentally Deleted During a Windows Cleanup

Deleted files may still be recoverable. Start with the Windows Recycle Bin, OneDrive’s web Recycle Bin, and backups; use Windows File Recovery only for local storage.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

First, stop saving or downloading anything to the drive where the files were deleted. Then check both Recycle Bins that may apply: Windows Recycle Bin for local files and the OneDrive web Recycle Bin for cloud-synced files. If neither has the files, check backups before trying Microsoft’s Windows File Recovery tool for local storage. The right route depends on whether the files were local, synced with OneDrive, or stored online-only.

Before trying recovery, identify where the files were stored

A Windows cleanup can remove files from different places, and the recovery route depends on the original location:

As an Amazon Associate I earn from qualifying purchases.

  • Local files: Start with the Windows Recycle Bin and any backup. Windows File Recovery may attempt recovery from local drives if those options fail.
  • Files in a synced OneDrive folder: Check both the Windows Recycle Bin and the OneDrive website’s Recycle Bin. The local bin can contain deleted synced files, but cloud-deleted online-only files may not appear there.
  • Online-only OneDrive files: Search OneDrive on the web and check its Recycle Bin. Windows File Recovery does not recover cloud storage.
  • Network shares: Windows File Recovery does not support network file shares. Check the storage provider’s own recovery options or backups instead.

If local files are missing and you cannot restore them immediately, minimize use of the affected drive. Microsoft explains that deleted-file space is marked as free and new data may overwrite it. Avoid installing recovery software, downloading files, or saving new work to that drive. Microsoft’s Windows File Recovery guidance recommends minimizing or avoiding computer use to improve the chance of recovery.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Check the Windows Recycle Bin

  1. Open Recycle Bin on the desktop.
  2. Find the deleted file or folder. You can sort the list or search by name if needed.
  3. Right-click the item and select Restore. Windows returns it to its original location.

If the file is not there, it may have been permanently deleted, removed from a location that bypasses the local bin, or stored in OneDrive in a way that makes the web bin the relevant place to check.

#1 Best Overall
Sandisk 2TB Extreme Portable SSD, Up to 1050MB/s, USB-C, USB 3.2 Gen 2, IP65 Water and Dust Resistance, Updated Firmware, External Solid State Drive, SDSSDE61-2T00-G25
  • Get NVMe solid state performance with up to 1050MB/s read and 1000MB/s write speeds in a portable, high-capacity drive(1) (Based on internal testing; performance may be lower depending on host device & other factors. 1MB=1,000,000 bytes.)
  • Up to 3-meter drop protection and IP65 water and dust resistance mean this tough drive can take a beating(3) (Previously rated for 2-meter drop protection and IP55 rating. Now qualified for the higher, stated specs.)
  • Use the handy carabiner loop to secure it to your belt loop or backpack for extra peace of mind.
  • Help keep private content private with the included password protection featuring 256‐bit AES hardware encryption.(3)
  • Easily manage files and automatically free up space with the SanDisk Memory Zone app.(5). Non-Operating Temperature -20°C to 85°C

Search OneDrive and check its web Recycle Bin

  1. Sign in to the OneDrive website with the Microsoft account that held the file. If you use both personal and work or school accounts, check the right one.
  2. Search OneDrive by file name or a descriptive term. Check likely folders and Personal Vault if you use it.
  3. Open the OneDrive web Recycle Bin. Select the file or folder and choose Restore if it is listed.

Microsoft’s current support guidance states that deleted items may remain in OneDrive’s Recycle Bin for 30 days for personal accounts and 93 days for work or school accounts, unless an administrator has changed the organization’s retention setting. Items permanently deleted from the OneDrive Recycle Bin cannot be restored through this documented method. See Microsoft’s OneDrive file-restore instructions for current details.

If a file is missing from the expected folder, check whether it is in another folder or account before concluding that it is gone. Microsoft’s OneDrive missing-file guidance also recommends checking Personal Vault and verifying which account is signed in.

Rank #2
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
  • Solid state performance with up to 800MB/s read speeds in a portable drive. (Based on internal testing; performance may be lower depending on host device, interface, usage conditions and other factors. 1MB=1,000,000 bytes.)
  • Back up your content and memories on a storage solution that fits seamlessly into your mobile lifestyle.
  • Take it with you on your adventures—up to two-meter drop protection means this durable drive can take a beating. (Based on internal testing.)
  • Secure it to your belt loop or backpack for extra peace of mind thanks to the tough rubber hook.
  • From Sandisk, a brand professional photographers trust to take on assignments.

Check backups before attempting file recovery

Look for a backup that was configured before the deletion, such as a backup on another drive or a backup service you already use. Restore the file from that backup if a usable copy exists. Microsoft recommends checking backups before using Windows File Recovery.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Do not assume that File History or Previous Versions contains a copy: those options help only if a suitable backup or snapshot was already available. The specific steps and availability depend on how the PC was configured.

Rank #3
SSK Portable SSD 500GB External Solid State Hard Drive USB C Up to 1050MB/s
  • Capacity Display Variance: 500GB external ssd often appears as around 465GB on Windows. MacOS can show full 500 GB capacity. This is binary calculation difference and doesn’t affect SSD hard drive actual physical storage
  • 1050 MB/s Speed: Instantly access to your files with blazing-fast 10Gbps external SSD read up to 1050MB/s and write up to 1000MB/s. LED Light indicates USB SSD instant activity
  • Data Security: Solid state drives S.M.A.R.T. health diagnostics​ and adaptive TRIM optimizing data block management ensures consistent write speeds and extends the longevity of the portable SSD
  • USB-C & USB-A Cable: Both cables featuring rapid USB 3.2 Gen2, this USB SSD effortlessly bridges devices, enabling seamless cross-platform file transfers and backup between computers, smartphones, tablets and iPhone
  • Always Fast: No slowdowns for large file transfers. With SLC caching (25% of current available capacity allocated as high-speed cache), this external SSD delivers steady 10Gbps for transfers within the cache capacity

Use Windows File Recovery for deleted local files

If the file was on a local drive and is missing from the Recycle Bin and backups, Microsoft’s Windows File Recovery app can attempt to recover it. The command-line app is available from the Microsoft Store. It supports local internal drives, external drives, and USB devices, but not cloud storage or network shares. Recovery is not guaranteed.

Prepare a separate destination drive

Do not save recovered files to the same drive you are scanning. Microsoft requires different source and destination drives. If you do not already have another suitable drive, an external hard drive for recovered files may provide a separate destination; existing storage on another drive can also work.

Rank #4
Sale
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
  • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Run a recovery command

Microsoft documents this command format:

winfr source-drive: destination-drive: [/mode] [/switches]

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For example, to try to recover a Documents folder from C: to E:, Microsoft gives:

Best Value
Sale
Samsung T7 Portable SSD 1TB Titan Gray, USB 3.2 Gen 2, Up to 1,050MB/s | Reliable External Solid State Drive Storage for Gaming, Students, Professionals (MU-PC1T0T/AM)
  • MADE FOR THE MAKERS: Create; Explore; Store; The T7 Portable SSD delivers fast speeds and durable features to back up any endeavor; Build your video editing empire, file your photographs or back up your blogs all in an instant
  • SHARE IDEAS IN A FLASH: Don’t waste a second waiting and spend more time doing; The T7 is embedded with PCIe NVMe technology that brings fast read and write speeds up to 1,050/1,000 MB/s¹, making it almost twice as fast as the T5
  • ALWAYS MAKE THE SAVE: Compact design with massive capacity; With capacities up to 4TB, save exactly what you need to your drive – from large working files to game data and everything in between
  • ADAPTS TO EVERY NEED: Whether using a PC or mobile phone, count on the T7 for extensive compatibility²; It’s a true team player when it comes to heavy-duty application usage or file-saving
  • HI RESOLUTION VIDEO RECORDING: Record Ultra High Resolution (4K 60fs) videos directly onto the T7 Portable SSD with your favorite camera or mobile devices; Supports iPhone 15 Pro Res 4K at 60fps video and more³

winfr C: E: /regular /n Users<username>Documents

To search for PDF and DOCX files instead, its example is:

winfr C: E: /regular /n *.pdf /n *.docx

When recovering from the Windows operating-system drive, often C:, use the /n filter to specify a file or folder. Replace <username> with the Windows account folder name on your PC. Check Microsoft’s current Windows File Recovery instructions for exact syntax and mode guidance before running a command.

Choose a recovery mode

Microsoft documents Regular and Extensive modes and recommends starting with Regular if you are unsure. Non-NTFS file systems are supported only in Extensive mode. FAT and exFAT are common on SD cards and smaller flash or USB drives; NTFS is common on computers and larger drives. To check a drive’s file system, open it in File Explorer, right-click the drive, and select Properties.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

When several OneDrive files changed or disappeared

If the problem affected many files or folders in OneDrive, Microsoft 365 subscribers can use OneDrive restore to return activity to a point within the last 30 days. Review the activity list and chosen restore point before proceeding: files and folders created after that point are sent to the OneDrive Recycle Bin. For one missing file, check its OneDrive Recycle Bin or available file-version options first. See Microsoft’s OneDrive restore instructions for the current process.

Know when to stop

  • The file was permanently deleted from OneDrive’s Recycle Bin: Microsoft says it cannot be restored through the documented OneDrive recovery path.
  • The file was cloud-only or on a network share: Windows File Recovery is not the appropriate tool; use the cloud provider’s recovery options or check with the administrator responsible for the share.
  • The file is especially valuable: Stop using the affected device and consider consulting a qualified data-recovery professional. No recovery outcome is guaranteed.

Microsoft’s guidance does not establish device-specific recovery odds or whether a particular SSD can recover a deleted file. Avoid relying on a blanket promise that recovery will—or will not—work on a specific drive.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.