How to Recover Deleted Files from a Flash Drive: 3 Methods That Work

Deleted files from a USB stick and they aren't in the Recycle Bin? That's normal. Here are three free and manual methods to get them back, ordered so you can stop as soon as your files return.

Fact-checked Reviewed by Meera Krishnan Updated June 18, 2026 Based on 4 sources

Key takeaways

  • Stop using the drive right away. Don't copy anything new onto it until your files are back.
  • Deleted USB files skip the Recycle Bin. That doesn't mean they're gone, just that Windows removed them directly.
  • The chkdsk and attrib commands recover files hidden by malware or corruption, with no software needed.
  • Previous Versions restores a file if Windows saved a snapshot before the deletion.
  • If manual methods fail, free signature-scanning software can rebuild files from the raw drive.

You plug in your USB stick, open it, and the files you needed are gone. You check the Recycle Bin out of habit. Nothing there either. That's the moment most people start to panic.

Here's the part that helps: deleted files on a flash drive don't go to the Recycle Bin at all. Windows removes them directly because the drive is removable. But the data itself is still physically on the drive until something writes over it. That gap is your chance to get everything back.

Summary

Yes, you can usually recover deleted files from a flash drive. Start with the Command Prompt method (chkdsk and attrib) for files hidden by corruption, then try Previous Versions, then free signature-scanning software for true deletions. Stop writing to the drive the moment you notice the loss, and recover to a different disk.

The three methods below run from quickest to most thorough. Work through them in order and stop as soon as your files come back.

MethodBest whenDifficultyWorks if
1. chkdsk + attribFiles vanished after a virus or bad ejectEasyFiles are hidden, not truly deleted
2. Previous VersionsSystem Protection was on before deletionEasyA restore point or snapshot exists
3. Free recovery softwareFiles are genuinely deleted or formattedMediumDrive sectors aren't overwritten yet
Try them top to bottom and stop as soon as your files are recovered.
Don't save anything new to the drive

Every file you copy onto the flash drive risks landing on the same sectors that hold your deleted data. Until you've recovered what you need, treat the drive as read-only. Don't reformat it, don't run a repair that writes to it, and don't move new files onto it.

Method 1: Recover hidden files with Command Prompt

Sometimes files aren't deleted at all. A virus or a bad eject can flip their attributes to hidden or system, so they vanish from view while still sitting on the drive. The attrib command brings them back. No software required.

Plug in the drive, note its letter in File Explorer (say it's E:), then open Command Prompt as administrator and run:

Command Prompt (Admin)
:: Replace E: with your flash drive's letter

:: Check and fix file system errors first
chkdsk E: /f

:: Clear hidden, read-only and system flags on every file
attrib -h -r -s /s /d E:\*.*
The attrib switches: -h clears hidden, -r clears read-only, -s clears system, /s and /d apply it through all subfolders.

When it finishes, open the drive. Your files often reappear in place, or inside a newly created folder. If they show up with odd extensions, rename them back to the correct format and they'll open normally.

One honest limit: this only works for files that were hidden or had their attributes changed. If the files were genuinely deleted, attrib won't bring them back. Move on to the next method.

Method 2: Restore Previous Versions

Windows can keep older copies of files through System Protection and File History. If either was active before you deleted the files, you may have a snapshot to restore from.

  1. Connect the flash drive and open This PC.
  2. Right-click the flash drive and choose Properties.
  3. Open the Previous Versions tab.
  4. Pick a version dated before the deletion and click Restore.

The catch is in the name: this only works if a previous version was saved before you lost the files. If the tab is empty, nothing was snapshotted and you'll need the next method. It costs nothing to check, so always look here before reaching for software.

Method 3: Use free recovery software

When the files are truly deleted or the drive was formatted, manual tricks run out. This is where signature-based recovery earns its place.

These tools ignore the file system and scan the raw drive for file signatures. A JPEG starts with a known byte sequence, so does a PDF, a DOCX, a ZIP. The software finds those markers and rebuilds the files around them, even when the directory entry is long gone.

Free, well-regarded options include PhotoRec (open source, cross-platform) and Recuva (Windows). PhotoRec in particular handles a huge range of formats because it works purely from signatures.

Always recover to a different drive than the one you're scanning. Saving recovered files back onto the same flash drive can overwrite the very data you're trying to rescue.

The workflow:

  1. Install the tool on your computer's main drive, not the flash drive.
  2. Select the flash drive and run a deep scan rather than a quick scan.
  3. Filter by file type and preview results where the tool allows it.
  4. Save recovered files to your computer or a second drive.

On flash drives, I've recovered photos and documents weeks after deletion this way, as long as the drive wasn't reused. The less you touched it after the loss, the more comes back.

How to avoid losing USB files again

Flash drives are convenient and fragile in equal measure. Treat any USB stick as temporary transport, never as the only home for important files. Keep a copy on your computer or in cloud storage, and always use Safely Remove Hardware before pulling the drive out. Yanking a drive mid-write is one of the most common ways these files get corrupted in the first place.

Got your files back? Good. Copy them somewhere safe right now, before you reuse that drive. What were you storing on it that you can't afford to lose again?

Frequently asked questions

Can I recover deleted files from a USB flash drive?

Yes, in most cases. Deleted files on a flash drive don't go to the Recycle Bin, but the data stays on the drive until it's overwritten. The chkdsk and attrib commands, Previous Versions or signature-based scanning can recover them. Stop using the drive immediately.

Why don't deleted USB files go to the Recycle Bin?

Windows only routes deletions from internal drives to the Recycle Bin. Files deleted from removable drives like USB sticks are removed directly, so you won't find them in the bin. They're still recoverable until overwritten.

What causes data loss on a flash drive?

Common causes include accidental deletion, unplugging the drive during a transfer, file system corruption, virus or malware damage and physical wear. The sooner you start recovery, the better your chances.

Will the chkdsk and attrib method always work?

No. The attrib method only recovers files that were hidden or had their attributes changed, often by malware. It won't recover truly deleted files. For those, you need Previous Versions or signature-based recovery software.

Can I recover files from a USB without any software?

Yes. The Command Prompt method using chkdsk and attrib needs no extra software, and Previous Versions is built into Windows. Both are free. Recovery software is only needed when these manual methods come up empty.

My flash drive isn't recognized at all. What now?

Try a different USB port and computer first. If it's still not detected, the controller chip may have failed. At that point, software can't help and you'd need a professional service that can read the NAND chips directly.

Sources & references

This guide was written from hands-on testing and cross-checked against the following references.

  1. Microsoft Learn: chkdsk command reference. learn.microsoft.com
  2. Microsoft Learn: attrib command reference. learn.microsoft.com
  3. Microsoft Support: Restore files with Previous Versions and File History. support.microsoft.com
  4. Internal lab testing: recovery success rates across USB flash media, TechNewsKB, 2024 to 2026.
Comments (3) Moderated
R
Rahul S. · 2 days ago

The attrib command worked instantly. A virus had hidden everything on my pen drive and I thought it was wiped. All back now.

↑ Helpful (18)Reply
L
Lena K. · 4 days ago

Previous Versions tab was empty for me, but PhotoRec pulled back most of my photos. Slow scan but worth it.

↑ Helpful (11)Reply
T
Tom B. · 1 week ago

Lesson learned about Safely Remove Hardware. Pulled mine out mid-copy and corrupted the lot.

↑ Helpful (7)Reply