How to Recover Deleted Files From a USB Flash Drive in Windows

Deleted files from a USB stick and nothing in the Recycle Bin? Learn three free ways to get them back.

Fact-checked Reviewed by Meera Krishnan Updated October 29, 2026 Based on 4 sources
Summary

Three free methods can bring back files from a USB flash drive. Enter attrib if files vanished from view. Check Restore previous versions next, then use Windows File Recovery for permanent deletions. Stop saving to the stick and send recovered files to a different disk. Windows File Recovery needs Extensive mode for FAT and exFAT drives.

You open your USB stick and the files you need are gone. Your Recycle Bin is empty too. Windows doesn't send files deleted from a flash drive there.

Your data remains on the stick until new files overwrite it. If the stick also fails to open, see how to recover data and repair a SanDisk USB drive with CMD.

How do You Recover Deleted Files From a Flash Drive?

MethodBest WhenWorks If
1. attrib commandFiles vanished from viewThe files carry the Hidden attribute
2. Restore previous versionsA backup saved the folderFile History or another backup ran earlier
3. Windows File RecoveryThe files were permanently deletedNew data hasn't overwritten the space

Why should You Stop Saving to the Flash Drive?

Microsoft states that deleted files remain recoverable only until new activity overwrites their space. Copying new files onto the stick risks that. Details are in Windows File Recovery guidance.

How do You Unhide Files With attrib?

Files that carry the Hidden attribute disappear from view but remain on the stick. Microsoft documents -h for Hidden, -r for the read only attribute and -s for System, with /s and /d to apply the change in subfolders and directories. See attrib reference.

  1. Plug in the stick and note its letter in File Explorer.
  2. Open Command Prompt.
  3. Enter the command below with your own letter instead of E.
Command Prompt
:: Replace E: with your flash drive letter
attrib -h -r -s /s /d E:\*.*

Open the stick afterward. Files that were only hidden reappear. Truly deleted files don't come back with attrib. Move to the next method.

How do You Restore Previous Versions?

Microsoft describes Restore previous versions for File History. It works only if File History was on earlier with a backup disk. See File History restore steps.

  1. Open File Explorer and go to the folder that held the file. For a file in the top level of the stick right click the stick itself.
  2. Select Restore previous versions.
  3. Choose a version from before the deletion on the Previous Versions tab.
  4. Select Restore.

When the Previous Versions tab is empty no backup saved that folder. Save restored files to a different disk when you can.

How do You Use Windows File Recovery?

Windows File Recovery from Microsoft scans a disk for deleted files. Microsoft states that it supports NTFS on USB drives over 4 GB and FAT or exFAT on SD cards and USB drives under 4 GB.

  • Regular mode. Suggested for recently deleted files on a healthy NTFS disk.
  • Extensive mode. Required for FAT and exFAT. Suited to older deletions, formatted disks and corrupted disks.
  • Signature mode. Uses file headers and works with any file system.
  • Different destination. Source and destination must differ. Save recovered files to your computer.

PhotoRec is a free, open source option. Its documentation states that it ignores the file system and recognizes more than 480 file extensions.

How do You Avoid Losing USB Files Again?

Microsoft advises that you always safely remove USB flash drives to avoid data loss. Right click the Safely Remove Hardware and Eject Media icon and select Eject followed by your device name. See safely removing hardware.

Store a second copy of important files on your computer. For a recovery sequence on a PC see how to recover deleted data from a desktop computer.

Frequently Asked Questions

Can I Recover Deleted Files From a USB Flash Drive?

Sometimes. Microsoft states that deleted files remain recoverable only until new activity overwrites their space. Windows File Recovery can scan the stick.

Why Don't Deleted USB Files Go to the Recycle Bin?

Windows removes them directly. Recovery uses a scan or a backup instead.

Can I Recover USB Files Without Software?

Yes, in two cases. The attrib command unhides files that carry the Hidden attribute. Restore previous versions works when File History saved the folder.

Does Windows File Recovery Work on FAT or exFAT Flash Drives?

Yes. Microsoft states that FAT and exFAT drives need Extensive mode.

Will attrib Recover Truly Deleted Files?

No. Attrib only clears attributes like Hidden. Use Windows File Recovery for deleted files.

How do I Remove a USB Flash Drive Safely?

Right click the Safely Remove Hardware and Eject Media icon, select Eject followed by your device name and unplug the stick after the Safe To Remove Hardware notice.

Key Takeaways

  • Deleted files on a flash drive skip the Recycle Bin.
  • Attrib unhides files and doesn't recover deleted ones.
  • Restore previous versions needs an earlier File History backup.
  • Windows File Recovery needs Extensive mode for FAT and exFAT.
  • Save recovered files to a different disk than the stick.

Sources and References

This guide follows Microsoft documentation. PhotoRec details come from its official documentation.

  1. attrib (Microsoft Learn) learn.microsoft.com
  2. Backup and Restore With File History (Microsoft Support) support.microsoft.com
  3. Windows File Recovery (Microsoft Support) support.microsoft.com
  4. Safely Remove Hardware in Windows (Microsoft Support) support.microsoft.com