See if this sounds familiar. Let’s say you were copying some photos or some documents to a USB drive, and all of a sudden you accidentally unplug it or it becomes disconnected somehow, and everything gets corrupted. Now you’re sitting there like, damn… Or you accidentally deleted something from your USB drive and only then realized that you needed these files.
We know that feeling. Today we are going to show you exactly how to recover these files. We will be showing you three different ways to recover your files from a USB drive on Windows: data recovery software, Microsoft’s free command-line tool, and a couple of CMD commands for hidden files. We have re-tested the steps in December 2026 with the latest version of Disk Drill, so everything below matches what you’ll see on your screen. So let’s get started.
USB Deleted File Recovery: Dos and Don’ts
Before we start, there is a little bit of groundwork that we need to cover first, and that is what actually happens to files when they get deleted. If you have never read this blog before, then make sure you pay attention to this part specifically because it’s really important.
When you delete files, they’re not actually gone. Rather, they’re just hidden by Windows (or macOS, if you use Mac) to be overwritten later on by more files down the line. The same goes for a quick format: it only creates a new, empty file table, while the files themselves stay on the drive until something new is written over them.
What this means is that if we act fast, we can get our files back by “unhiding” them, using some backup methods, or software, and that will allow us to get our files back very easily. This also gives us a few guidelines that we should pay attention to:
- 🛑 Stop using your USB drive. This will prevent any further corruption or permanent deletion of the files that we’re trying so hard to recover. Continued use of the device may overwrite your deleted data with new data, making it unrecoverable. But don’t worry, this does not mean that if you copy one new file, you have permanently erased everything on the flash drive that was on it before you deleted or formatted it. That’s not how it works.
- 🔌 It would be a good idea to unplug the USB drive from the computer. This kind of goes along with point number one. It just forces you to stop using the drive and make sure that nothing will go into the drive or come out of the drive, thus greatly increasing the probability that you’ll be able to get your files back.
- 📋 It’s best not to copy anything that remains on the drive from the drive to your computer. Using the drive at all can further corrupt the files if you’re not careful and you don’t know what you’re doing.
- ⚠️ Don’t format the drive and don’t run chkdsk first. If Windows says “You need to format the disk before you can use it,” click Cancel. Formatting and repair tools change the file system, and that can make recovery harder. Recover your files first, then fix the drive.
Just completely leave the USB drive alone. That’s basically all-encompassing here. Do not mess with the drive at all. Rather, the very next thing you should do is follow these simple methods that we are about to share with you in this article, and we’re going to get started right now with number one, which is using data recovery software.
Not sure which method you need? Here’s a quick comparison:
| What you need | Disk Drill | Windows File Recovery | CMD (attrib, chkdsk) |
|---|---|---|---|
| Recover deleted files | ✅ Yes | ✅ Yes | ❌ No |
| Recover after a quick format or RAW drive | ✅ Yes | ⚠️ Sometimes, extensive mode only | ❌ No |
| Unhide files hidden by a virus | ✅ Yes, they show up in the scan | ❌ No | ✅ Yes |
| Preview before recovery | ✅ Yes, with recovery chances | ❌ No | ❌ No |
| Original file names and folders | ✅ When the file system still has them | ⚠️ Some files get generic names | ✅ Files stay where they were |
| Interface | 🖱️ Graphical, step by step | ⌨️ Command line | ⌨️ Command line |
| Price | Free scan and preview, 100 MB free recovery | Free | Free, built into Windows |
Method 1: Recover Files Deleted from a USB Flash Drive Using Data Recovery Software
Deleted files from your USB? Then we’re going to be using method one, which is using file recovery software that will extract the data and get our files back for us. This method also works after a quick format and when the drive shows up as RAW or asks to be formatted.
So, there’s a lot of software out there, right? Some are better than others, but what we’re looking for is something that can actually go inside the drive and pull the data out and reconstruct all the data to give us the best chance of getting our files back. For that, we’re going to be using Disk Drill.
Disk Drill is, of course, awesome. We have talked about it before in our Disk Drill review. One of the great things about Disk Drill for Windows is that you can scan your drive and preview everything it finds for free, and recover up to 100 MB of files without paying anything. The current version, Disk Drill 6, works on 64-bit Windows 10 and Windows 11 and supports the file systems USB drives use: FAT32, exFAT, and NTFS.
It’s amazing because not only do you get those free files, but you also get to preview everything that’s been recovered so that you know those things are recoverable before you spend a cent. So, it sounds pretty good to us, and we’re going to show you how to use it right now. Let’s go.
- First of all, download and install Disk Drill. Install it on your computer, not on the USB drive you’re recovering from. Then, once you’ve downloaded and installed it, go ahead and launch it. On the first launch, Disk Drill shows a short welcome screen and offers to continue in the free mode. After that, it brings you to the main screen, which opens the data recovery panel by default and lists all your drives.

- Now, select the disk that you want to scan, which in this case is our USB drive. If you don’t see it, check the Hardware Disks section in the sidebar: a corrupted or RAW flash drive often shows up there even when it has no drive letter. Click the “Search for lost data” button, which will initiate Disk Drill’s scanning algorithms.

- Disk Drill will ask whether this storage device comes from a camera or a drone. If your USB drive holds ordinary files like documents, photos, and archives, choose Universal Scan. Advanced Camera Recovery is meant for memory cards with footage straight from a camera.

- Depending on the size of your USB drive, this could take a little while, so you may have to exercise some patience here. A 32 GB flash drive usually takes a few minutes, but a large or failing one can take much longer. Once it’s finished, Disk Drill shows how many files it found, grouped into Pictures, Videos, Audio, Documents, Archives, and Other. Click “Review found items” to see them.

- You can review the files within the file structure or in the categories on the left-hand side. Deleted files keep their names and folders when the file system still has a record of them; the rest show up in the Reconstructed section, sorted by type. Switch to the thumbnail view if you’re looking for photos.

- One thing that we need to stress here, and this is really important: when you’re looking through the files that have been recovered, make sure that these files are previewable. Previewing means that you’re actually able to see a preview of that file in its entirety inside of Disk Drill before you even recover it. This is the best way to make sure that those files are intact, meaning that they have not been overwritten or damaged. Click a file, and the preview opens on the right, together with its recovery chances. If you see the full picture or document and “High” recovery chances, you know that file will come back. Making sure that those files are previewable is paramount.

- Once you find the files that you want, put a checkmark next to them, click the “Recover” button, and choose a save location. We strongly recommend that you export your files to your internal drive or somewhere that’s not the USB drive that you’re trying to recover from. Again, that’s really important to make sure that we don’t overwrite and corrupt those files in the recovery process. We typically choose the desktop. Then, click “OK,” and that will recover the files to the location that you selected.
Now, open the folder you selected, and all of our files are right there, completely usable. We can move them, copy them, open them in software, email them, and it’s literally just like they never left.
Tip for a failing flash drive. If your USB drive disconnects during the scan, is very slow, or makes Windows freeze, don’t scan it again and again. Use Disk Drill’s Byte-to-byte Backup tool to copy the whole drive to an image file first, and then scan the image instead. This way the drive only has to be read once.
Method 2: Recover Files with Windows File Recovery
If you’d rather not install third-party software, Microsoft has its own free tool called Windows File Recovery. It works on Windows 11 and Windows 10, and you can get it from the Microsoft Store. The catch is that it has no interface at all: you type commands, and there is no preview of what it finds.
- Install Windows File Recovery from the Microsoft Store, then open it from the Start menu. It opens a command window with administrator rights.
- Type a command in this format:
winfr E: C:\RecoveredFiles /extensive. Here, E: is the letter of your USB drive and C:\RecoveredFiles is the folder where the recovered files will go. The save location has to be on a different drive. Use the /extensive mode for flash drives: Microsoft says it is the only mode that works with FAT32 and exFAT, the file systems most USB drives use. To look only for certain files, add a filter, for example/n *.docxor/n *.jpg.
- Press Y to continue and wait for the scan to finish. When it’s done, Windows File Recovery asks whether you want to view the recovered files. They’re saved in a new Recovery folder named with the date and time, inside the folder you chose. Open it and check your files.

Windows File Recovery can work for simple cases, but you can’t see what it finds before it saves everything. In our test, most photos kept their names, but some came back as 0.jpg, 1.jpg, and so on. If it doesn’t find what you need, go back to Method 1.
Method 3: Recover Hidden Files on a USB Drive Using CMD
So this is definitely not only the more advanced method, but it’s also a slightly different approach, or rather a slightly different USB file recovery concept. It doesn’t bring back deleted files. Instead, it uses CMD and a couple of special commands that we can use in order to (1) unhide files that a virus or some error has hidden and (2) repair the damaged file system on your USB. If your flash drive shows the right amount of used space but looks empty, this is the method for you. In our test, the drive showed only one file. 
- To start, connect your USB flash drive to your computer. Then, open the start menu, type CMD, right-click Command Prompt, and choose Run as administrator.
- We’re going to be using two commands within CMD, and the first one is this:
attrib -h -r -s /s /d X:\*.*. The one thing that’s really important here is the X in the command needs to be replaced with the drive letter of the USB drive that you’re trying to recover from. You can find this out just by going to your Windows Explorer, and in the sidebar, you can actually see which drive is associated with which letter. Then, once you’ve entered the command, go ahead and hit enter. So what this is going to do is it’s going to remove the hidden, read-only, and system attributes from every file and folder on the drive, which brings back files that were hidden by a virus or some error. It doesn’t always work, but it is definitely a good thing to try, and it doesn’t change the files themselves. Don’t worry if you see “Access denied” for the System Volume Information folder, that’s normal.
After the command, the hidden folders and files were back in File Explorer. 
- If the drive still shows errors, use this command:
chkdsk X: /f. But again, make sure to replace that X in the command with the same drive letter that you used for the first command. This is very important. It’s basically a check disk command that’s going to scan the entire drive for us and fix the issues with your drive’s file system if there are any. Keep in mind that chkdsk can remove damaged file records while fixing the drive, so if there are files on it that you still need, recover them with Method 1 first. If everything is fine, chkdsk finishes with “Windows has scanned the file system and found no problems.”
When Recovery Isn’t Possible
Let’s be honest, there are a few situations where no software and no command will get your files back:
- ✍️ The files were overwritten. If you kept copying new files to the drive after the deletion, some of the old data is gone for good.
- 🧹 The drive got a full format. Since Windows Vista, a full (not quick) format writes zeros over the whole drive, so there’s nothing left to recover.
- 🔧 The drive is physically broken. If the connector is snapped, the drive is not detected anywhere, or it shows 0 bytes, recovery software can’t read it. In that case, contact a professional data recovery service and don’t try to fix the drive yourself.
FAQ
Where do deleted USB files go?
If you’re wondering whether files deleted from a USB drive go to the Recycle Bin, the answer is no. The Recycle Bin uses a portion of each drive to store files deleted on that specific drive. When you delete a file from your C: disk, it goes to the C: Recycle Bin file.
When you delete a file from an external flash drive, there is no Recycle Bin on that disk. As a result, you’ll be asked if you want to permanently delete the file. However, when you delete files from a USB drive, they are not immediately erased from the device. Instead, the file system just marks the space on the drive where the deleted files were stored as available for new data to be written over it.
Until that space on the drive is overwritten with new data, it may be possible to recover the deleted files using specialized data recovery software.
How to recover deleted files from USB?
Here’s a super quick guide on how to recover deleted files from a USB flash drive:
- Download and install Disk Drill.
- Connect the USB drive containing the deleted files to your PC or laptop.
- Select your flash drive from the device list and click Search for lost data.
- Preview the found files and check their recovery chances.
- Select the files you want to recover, click Recover, and choose a location on another drive.
How to recover deleted files from USB without software?
Unfortunately, data recovery software is the only reliable way to recover permanently deleted files from your USB flash drive. Microsoft’s free Windows File Recovery is the closest you can get to “no software,” since it comes from Microsoft, but it still has to be installed. However, if the problem with your flash drive is caused by viruses or logical file system errors, you may be able to fix it without using software by utilizing command line options such as attrib or chkdsk.
How to recover files from USB using command prompt?
Here is a short step-by-step guide on using CMD commands attrib or chkdsk on a USB drive:
- Connect your USB drive to your computer and open Command Prompt as administrator.
- Type “attrib -h -r -s /s /d X:\*.*” (without quotes) and press Enter, replacing X with the drive letter of your USB drive. This command will unhide any hidden files on the USB drive and remove the read-only and system attributes.
- If the drive still has errors, type “chkdsk X: /f” (without quotes) and press Enter. Chkdsk will scan your USB drive for errors and attempt to fix them.
- Wait for the process to complete.
Remember that these commands don’t restore deleted files. For that, you need recovery software or Windows File Recovery.
Can I recover files from a formatted USB drive?
Yes, if it was a quick format, which is the default option in Windows. A quick format only creates a new file table, so recovery software can still find the old files. Scan the drive with Disk Drill before you copy anything new to it. After a full format, recovery is usually impossible, because Windows overwrites the whole drive with zeros.
Why does my USB drive say “You need to format the disk”?
This usually means the file system on the drive is damaged and Windows sees it as RAW. Click Cancel, don’t format it, and scan the drive with data recovery software first. Once your files are safe on another drive, you can format the USB drive and keep using it, or replace it if the errors come back.
Final Words
In conclusion, losing important files from a USB drive can be frustrating, but it’s not a hopeless situation. When a file is deleted from a USB drive, it’s not permanently erased, and if you act fast, there are ways to recover it. However, it’s important to stop using the USB drive immediately, unplug it from the computer, and not copy anything else to it. Using file recovery software like Disk Drill is the most effective way to recover lost files, since you can preview everything for free before recovering. Windows File Recovery and CMD commands are good free extras for simple cases. With these tips and methods, you can easily retrieve deleted files from a USB drive and prevent data loss.
