How to Recover Deleted Files from Flash Drive: Step-by-Step Guide

Learn how to recover deleted files from a flash drive with or without software. Discover built-in Windows fixes, Command Prompt tricks, data recovery software, and proactive backup solutions.

By Jonna    Updated on September 10, 2026

Can You Restore Deleted Files from Flash Drive?

Accidentally deleting important documents, photos, or work projects from a USB thumb drive is common. Fortunately, yes, you can restore deleted files from a flash drive in most cases.

When you delete a file from a USB drive connected to a computer running Windows 10 or Windows 11, the operating system doesn't instantly destroy the data. Instead, it marks the storage sectors holding that file as "unallocated" or available for new data, while removing the file's entry from the drive's file directory index.

Because flash drives rely on NAND flash memory, the actual binary data remains completely intact on the memory blocks until new files overwrite those exact sectors. However, because USB drives do not have a temporary staging Recycle Bin like internal local hard drives, speed is critical. To maximize your chances of successful recovery, you should immediately follow these best practices:

  • Stop using the flash drive immediately: Do not save new documents, copy files, or edit existing data on the USB device.

  • Do not format the drive: If Windows prompts you with "You need to format the disk before you can use it", cancel the prompt immediately.

  • Perform recovery from a separate drive: When using recovery tools, always save restored files onto your local hard drive or another external drive, rather than back onto the flash drive.

How to Recover Deleted Files from Flash Drive

Depending on whether your files were hidden, corrupted, or permanently deleted, several proven methods can bring them back.

Method 1: Recover Hidden Files using Command Prompt (CMD)

Sometimes files are not actually deleted; malware or file system errors may have altered their file attributes to "Hidden" or "System".

Step 1. Connect your USB drive to your PC and note its drive letter (e.g., E:).

Step 2. Press Win + S, type cmd, right-click Command Prompt, and choose Run as administrator.

Step 3. Type the following command and press Enter:

  • attrib -h -r -s /s /d x:*.* (replace X with the drive letter of your flash drive)

Step 4. Open your flash drive in File Explorer to see if your missing files have reappeared.

Method 2: Restore Previous Versions via Windows Backup / File History

If you regularly plug your flash drive into a PC with Windows File History or System Protection activated, Windows may have created a shadow copy of your drive's contents. In such a case, you can recover deleted files from flash drive without software.

Step 1. Open File Explorer and click on This PC.

Step 2. Right-click your USB flash drive and select Properties.

Step 3. Switch to the Previous Versions tab.

Step 4. Review the list of available previous versions, select a timestamp prior to deletion, and click Restore (or click Open to manually copy out specific files).

Method 3: Use Windows File Recovery Tool

Microsoft offers a free command-line recovery tool available on the Microsoft Store for Windows 10/11 users. You can use it to restore permanently deleted files on SD card, USB drive, or local drives.

Step 1. Download Windows File Recovery from the Microsoft Store and launch it.

Step 2. Use the basic syntax: winfr source-drive: destination-drive: [/mode] [/switches]

Step 3. For example, to recover JPG files from flash drive F: to D:, enter:

  • winfr F: D: /extensive /n *.jpg.

Step 4. Follow the on-screen prompts and check the target folder upon completion.

Method 4: Use Professional Data Recovery Software

If built-in tools fail, third-party recovery software, such as AOMEI FastRecovery, can execute a deep sector scan to recover deleted files directly from raw memory sectors. 

AOMEI FastRecovery
Free Data Recovery Software for Windows
  • 👍Free data recovery, up to 500MB.
  • Supports recovery of 1000+ data types: documents, videos, photos, audio, emails, webpages, compressed files, and so on.
  • Integrates Quick Scan Deep Scan to find all recoverable data.
  • Supports file filter, search, preview before recovery, and crashed PC recovery, making recovery simple and efficient.
  • Supports data recovery from HDDs/SSDs, external drives, USB drives, SD cards, etc., and NTFS, FAT32, exFAT, and ReFS file systems.
  • Recover data in any scenario, such as permanent deletions, disk formatting, system crashes, virus attacks, etc.

Step 1. Launch the powerful data recovery software - AOMEI FastRecovery. Hover the mouse over the flash drive and click Scan

Step 2. It will run a Quick Scan automatically to find all the recoverable data. The scanning results are displayed by Type or Path, allowing you to sort, search, filter, and preview

⚠️Tip: You can run aDeep Scanif the Quick Scan fails. Deep Scan searches every sector of the disk to find more files.

Step 3. Select all the deleted or lost files on the flash drive and click Recover. Please select a new location to save the recovered files instead of the original path.

Important: 1-Click Flash Drive Backup for Quick Recovery

The easiest way to avoid worrying about how to recover deleted files from flash drive is to maintain copies of important data before an accident happens.  A regular backup allows you to restore files without relying on complex recovery software or worrying about whether deleted data has been overwritten. The free Windows backup and restore software AOMEI Backupper offers an automated 1-click backup solution:

  • USB Plug-in trigger: You can configure backup software to automatically back up your flash drive whenever it is plugged into your PC.

  • Incremental & differential backups: Only changed or newly created files are backed up, saving storage space and execution time.

  • Instant 1-click restoration: If your USB drive gets corrupted or files are deleted, you can restore your exact folder structure in seconds from your local backup image.

Download Freeware Windows 11/10/8.1/8/7
Secure Download

You can download and run it for entire flash drive backup or specific file/folder backup as needed.

FAQs on Flash Drive Deleted File Recovery

#1. Is there a Recycle Bin on a USB drive?

No. Unlike internal hard drives, USB flash drives are treated by Windows as removable media. By default, files deleted from removable storage bypass the Windows Recycle Bin entirely and are deleted permanently at the file system level.

#2. What happens to files that you delete from a USB flash drive?

When you delete a file from a USB flash drive, the operating system marks the storage sectors as "unallocated" and removes the file path reference. The binary data remains physically present on the flash memory chips until new data is written over those exact memory sectors.

#3. Can you recover deleted files from a corrupted or unrecognized USB drive?

Yes. If your computer detects the drive letter (even if it prompts for formatting or shows as "RAW"), specialized data recovery software can scan the drive sectors directly without needing a functional file system index. If the drive has suffered physical chip damage, professional lab hardware recovery may be required.

#4. Can permanently deleted files be recovered from a flash drive?

In some cases, yes. If the deleted files are not available in a backup or the Recycle Bin, data recovery software may be able to locate recoverable data.

#5. Why does my flash drive show as empty?

A flash drive may appear empty because of accidental deletion, file system corruption, hidden files, malware, or drive errors. Before formatting the drive, try checking whether the files are hidden and consider scanning the device for recoverable data.

Conclusion

Learning how to recover deleted files from flash drive can help you respond correctly when important USB files disappear. The first rule is simple: stop using the flash drive immediately. Do not save new files, format the device, or perform unnecessary operations that could overwrite your lost data.

Start by checking whether another copy or backup of the files exists. If no backup is available, you can consider a recovery method such as Windows File Recovery or a dedicated USB data recovery software like AOMEI FastRecovery.

However, the best solution is prevention. Regularly backing up important files to an external hard drive or another secure location can make data loss far less stressful. With a reliable backup, restoring your files is usually much easier than trying to recover them after they have disappeared.

 
Jonna · Editor
Jonna joined AOMEI in 2021 and has become a professional in computer backup and restoration, disk cloning, file synchronization, etc. She maintains a keen eye for the latest technology trends and ensures that the information provided is always in step with industry developments.