Can You Recover Deleted Files? It Depends on Your Device
In this article
Whether you can recover deleted files depends entirely on the device. On hard drives, USB flash drives, and SD cards without TRIM, deleted data sits on the medium until overwritten. On an SSD, TRIM can make the data unreadable before the drive erases it. On an iPhone, permanent deletion erases the file's key.
- Hard drive (HDD): data persists on the platters
- USB flash drive: most sticks don't get TRIM
- SSD: TRIM marks blocks for erasure
- iPhone: no recovery after permanent deletion (TRIM plus per-file hardware encryption)
Whatever the device, stop using it immediately, then talk to our data recovery services team. We'll tell you plainly what we find.
Can you recover deleted files? It depends on the device. Hard drives and USB flash drives? Without TRIM or an overwrite, the data's still sitting on the storage medium, waiting to be found. SSDs and iPhones? Once the blocks are erased or the file's key is gone, no software or lab can undo that.
It comes down to two things: TRIM and hardware encryption. TRIM-enabled devices (SSDs, iPhones, modern Android phones) mark deleted blocks for erasure. Devices without TRIM (including many hard drives, USB flash drives, and SD cards) leave deleted data in place until something writes over it. We recover data from all of these at MDrepairs, so we know exactly where the line is between recoverable and gone for good.
Below, we'll break down every common device type, explain why recovery works (or doesn't), and link out to our detailed guides for each one.
The Quick Answer: Recovery by Device Type
Find your device type below. The "Full Guide" column links to a detailed post for your exact situation.
| Device | Why | Full Guide |
|---|---|---|
| Hard Drive (HDD) | Without TRIM, data persists on magnetic platters until overwritten. | Read Guide |
| SSD | After TRIM, many SSDs return zeros before the blocks are erased. | Read Guide |
| USB Flash Drive | On a stick without TRIM, data stays until overwritten. | Read Guide |
| SD Card | Simple file systems. Windows doesn't trim FAT or exFAT on file deletion. | Read Guide |
| iPhone | TRIM + per-file hardware encryption. Permanently deleted files are unreadable. | Read Guide |
Why Some Devices Are Recoverable and Others Aren't
Not all storage works the same way. Two technologies decide whether your files are recoverable, and understanding them will save you time, money, and a lot of frustration.
TRIM: The Recovery Killer
TRIM is a command your operating system sends to flash-based storage. When the OS sends TRIM, it tells the storage controller "these blocks aren't needed anymore." Many drives return zeros if you try to read those blocks. Later, garbage collection physically erases them. Gone. Wiped clean. Ready for new data.
Why does TRIM exist? Performance. Flash storage needs to erase blocks before it can write new data to them. Doing that cleanup in the background keeps the device fast. The side effect? Once that cleanup erases the blocks, your deleted data is physically gone.
IllustrationDevices that use TRIM: internal SSDs, NVMe drives, iPhones, modern Android phones, and some newer external SSDs.
Most hard drives and USB flash drives don't use TRIM. Windows doesn't send TRIM when you delete a file from a FAT or exFAT card. Linux can tell some SD cards to erase that space.
Encryption: The Second Lock
Some devices pile on a second layer: hardware-level encryption. iPhones encrypt every single file with its own unique key. Permanently delete the file, and that key gets destroyed too. Even if the blocks haven't been erased yet, whatever's left is encrypted gibberish with no way to decode it.
Hard drives, USB flash drives, and SD cards typically don't encrypt data at the hardware level. If the raw data's unencrypted and still on the storage medium, we can read it directly. No decryption, no keys to worry about.
The Simple Rule
No TRIM and no encryption. On a hard drive, USB stick or SD card set up this way, a deleted file's contents stay put until new data overwrites them.
TRIM and encryption. TRIM tells your encrypted internal SSD which blocks it can erase. Permanently deleting an iPhone file destroys its key. Modern Android phones also encrypt files.
TRIM without encryption. TRIM still tells an unencrypted consumer SSD which blocks it can erase.
Hard Drives: The Best Case for Recovery
Traditional spinning hard drives (HDDs) are the best-case scenario for data recovery.
Hard drives store data on spinning magnetic platters. Delete a file and the operating system just marks that space as "available" in the file system table. Your actual data? Still sitting on the platters, completely untouched, until the drive happens to write something new in that exact spot. On a drive that isn't heavily used, deleted files can stick around for weeks, months, sometimes years.
IllustrationThe first step in hard drive data recovery is finding out what's still there. We read the platters directly, scan for file signatures, and piece deleted files back together from the raw data. Corrupted file system? Quick format? Won't spin up? None of those things erases the platters by itself.
Most hard drives don't use TRIM. They don't encrypt individual files. Without TRIM, what you delete stays on the platters until overwritten. Some newer SMR hard drives do accept TRIM, so stop using the drive right away.
Our detailed guide walks through what software to try first and when you need professional help. You can also check your hard drive's health before problems start.
Read the full guide: How to Recover Deleted Files from a Hard Drive
SSDs: The Worst Case
SSDs are the exact opposite of hard drives when it comes to recovery. Deleted files from an internal SSD? What matters is whether TRIM has already cleared the blocks that held them.
TRIM is the reason. Windows 10 and 11 send TRIM by default when you delete a file on an NTFS drive. Macs trim Apple's own internal SSDs. TRIM stays off for a third-party SATA SSD in a Mac unless trimforce is enabled. Ubuntu schedules TRIM once a week. After TRIM, many SSDs return zeros when you try to read the file. Garbage collection wipes the blocks clean later, on the drive's own schedule.
There are a few narrow exceptions. TRIM was manually disabled. You're running some ancient OS that doesn't support TRIM. Or the next weekly trim hasn't run yet.
One other edge case: external SSDs connected via USB sometimes don't receive TRIM commands because the USB enclosure doesn't pass them through. Recovery might be possible in that scenario. A UASP enclosure with the right firmware passes TRIM through.
Read the full guide: Can You Recover Deleted Files from an SSD?
USB Flash Drives: Good News
This is where things get surprisingly good. USB flash drives use flash memory (same basic tech as SSDs).
Here's why: Windows doesn't send TRIM when you delete a file from a FAT or exFAT flash drive. It marks the space as available in the file system but does NOT tell the controller to erase the underlying blocks. Your data just sits there, same as it would on a hard drive.
Recovery software can scan a copy of the drive, find deleted file signatures, and piece your files back together. The result depends on the surviving data and any writes after deletion.
The one risk? Overwriting. Flash drives are small and people reuse them constantly, so new data can wipe out deleted files fast. The sooner you stop using the drive after realizing files are missing, the better.
Read the full guide: How to Recover Deleted Files from a USB Flash Drive
SD Cards: Great News for Photographers
Camera SD cards have simple file systems (usually FAT32 or exFAT) and predictable data layouts.
When a camera or phone just removes a photo's directory entry from an SD card, the actual image data stays exactly where it was. JPEG and RAW files have distinctive header signatures that recovery software picks up easily, even without an intact file system.
Accidentally formatted your SD card? It depends on whether the format erased the photos or just the file table. A "quick format" can clear the file table without overwriting the photos. On Windows Vista or later, a full format writes zeros across the whole volume.
SD card recovery may involve wedding photos, business documents, or research data. The result depends on the fault and whether the needed data remains accessible.
Read the full guide: How to Recover Deleted Files from an SD Card
iPhones: Encryption Makes It Impossible
iPhones are the hardest case we deal with. If you permanently deleted files (past the 30-day Recently Deleted window) and don't have a backup or another copy, that data is gone. No lab, no software, no government agency is getting it back.
Two things kill you here. First, iPhones use TRIM on their internal NAND flash to mark a permanently deleted file's blocks for erasure. Second, the iPhone uses hardware encryption to protect each file with its own key. Delete the file and its unique encryption key gets destroyed too. Even if the blocks haven't been erased yet, whatever's left is scrambled beyond any possibility of decryption.
IllustrationThe saving grace is Apple's built-in safety nets. Recently Deleted gives you 30 days. iCloud Photos syncs deletions too. Photos synced that way aren't in your iCloud Backup. iCloud Backup runs daily when your iPhone is plugged in, locked, and on Wi-Fi. For computer backups, look in the Finder on a Mac, the Apple Devices app on Windows, or iTunes on older systems. If your data exists in any of those places, you can get it back. Our iPhone guide walks through every legitimate recovery option. If your iPhone is locked out or showing "Unavailable," see our iPhone Unavailable guide instead.
Read the full guide: Can You Recover Deleted Data from an iPhone?
What About Android Phones?
Android is a mixed bag. It ranges from "difficult" to "impossible" depending on the age and model.
Modern Android phones: Every phone that launched with Android 10 or later uses file-based encryption. Android trims storage during idle maintenance. Samsung Galaxy, Google Pixel, OnePlus, all the major brands encrypt internal storage by default. Without the key, the encrypted data is unreadable.
Chip-off is a possible method for certain supported, unencrypted flash devices, not a universal last resort. Raw NAND needs compatible error correction, descrambling, and controller-layout reconstruction. Modern encrypted SSDs and phones require their original or specifically supported reading/security path; memory removal does not bypass encryption.
SD card in an Android phone: If your files were on the removable card, stop using it so nothing new gets written over them. SD cards set up as internal storage are encrypted to that phone, so keep the two together. If yours was set up as portable storage, pull the card out, put it in a computer, and follow our SD card recovery guide.
What About NAS Devices and RAID Arrays?
NAS devices and RAID arrays are a different animal. Most consumer NAS units (Synology, QNAP, Western Digital) run traditional hard drives internally. The drives that don't use TRIM keep deleted data on the platters until it's overwritten.
Where it gets complicated is the array configuration. RAID 0, RAID 1, RAID 5, RAID 6, they all arrange data across multiple drives differently. Recovering deleted files from a RAID 5 or RAID 6 array means understanding the specific stripe size, parity layout, and drive order. This is almost always a professional job, not something consumer software can handle.
If you've deleted files from a NAS or had a RAID failure, contact our lab directly. We can assess your setup.
The Universal Rule: Stop Using the Device
For every device type where recovery is possible (hard drives, USB flash drives, SD cards), one rule matters more than anything: stop using the device immediately.
When you delete a file, the space it occupied gets marked as "available." The data's still there, but the device now considers that space fair game for new writes. Everything you do after deletion risks overwriting your files:
Illustration- Saving a new file could overwrite deleted data
- Installing recovery software TO the same drive could overwrite the files you're trying to recover
- Even just browsing the internet writes temporary files to the drive
- Windows and macOS constantly write log files, thumbnails, and temporary data in the background
What to Do Right Now
1 Stop using the device
If it's an external drive, USB drive, or SD card: unplug it. If it's your computer's internal drive: shut down the computer.
2 Don't save anything to the drive
Do not download files, install software, or do anything that writes data to the affected storage device. Every write operation is a potential overwrite of your deleted files.
3 Use a different device to research your options
Read this guide on your phone if the affected device is your computer. Read it on your computer if the affected device is an external drive. Keep the affected device powered off and disconnected.
4 Decide: software recovery or professional help
For a simple deletion on a healthy drive, try recovery software on a copy. For drives that are clicking, beeping, not detected, or showing other physical symptoms, professional recovery is the safer choice. See the decision table below, or get a quote for professional recovery.
When to Try Software vs. Call a Professional
Not every situation needs a professional lab. Some are easy DIY fixes. Others need specialized equipment. Here's how to tell the difference.
| Situation | Recommendation | Why |
|---|---|---|
| Accidentally deleted files from a healthy hard drive | Try software first | Recovery software handles simple deletions well when the drive is working normally. |
| Deleted files from a USB flash drive | Try software first | Deleted files can stay on the stick until new data overwrites them. |
| Formatted an SD card in your camera | Try software first | A quick format can leave photos intact. PhotoRec can look for them on a copy of the card. |
| Hard drive is clicking or beeping | Call a professional | Hard clicks that keep repeating point to physical damage. Running it risks more damage. A beeping external drive may need more power. |
| Drive not detected by computer | Call a professional | Could be electronic or mechanical failure. Software can't help if the drive isn't visible. |
| Deleted files from an SSD | Check your backups first | If the drive has erased the blocks, software has nothing to read. |
| Permanently deleted from iPhone | Check backups only | No software or lab can recover permanently deleted iPhone data. Check iCloud and your computer backups. Use the Finder on a Mac, the Apple Devices app on Windows, or iTunes on older systems. |
| RAID or NAS failure | Call a professional | Multi-drive configurations require specialized knowledge of RAID layouts and parity. |
| Drive was dropped or physically damaged | Call a professional | Physical impact can damage heads, platters, or electronics. Running it risks further damage. |
Frequently Asked Questions
Can you recover deleted files from any device?
No. It depends on the storage type. On hard drives and USB flash drives, deleted data can stay on the medium until it's overwritten. SSDs and iPhones use TRIM to flag unused blocks after deletion. If your files were on an SD card, stop saving anything to it so you don't overwrite them. The question you need to ask: does my device use TRIM?
What is TRIM and why does it matter for data recovery?
TRIM tells a drive which blocks aren't needed anymore. Many SSDs return zeros for those blocks right away. Garbage collection wipes them clean later. Great for performance. Terrible for recovery, because the data is genuinely erased, not just "marked as available." Most hard drives and USB flash drives don't use TRIM. SSDs, iPhones, and modern Android phones do.
Is it worth paying for data recovery software?
Start with free data recovery software. PhotoRec and TestDisk handle simple deletions well. Scan a copy of the hard drive, USB flash drive, or SD card, and save recovered files to a different drive. For SSDs and iPhones, don't waste your money. No software can recover data the drive already erased. Check our device-specific guides for recommendations: hard drives, USB drives, SD cards.
How much does professional data recovery cost?
Logical recoveries (accidental deletion, formatting) cost less. Physical recoveries (clicking drives, water damage, head crashes) cost more. $100 diagnostic, credited toward a successful recovery. You approve the estimate before recovery work starts. If we can't get any files back, there's no recovery fee. The standard wait is 4 to 6 weeks before we reach your device in line and start the diagnostic. Full pricing breakdown here.
I deleted files from my external hard drive. Can I get them back?
If your external hard drive doesn't use TRIM, deleted data stays on the platters until something overwrites it. Stop using the drive right now, then either try recovery software on a copy or call our lab. The sooner you act, the better.
Why can hard drive data be recovered but not SSD data?
Hard drives store data on spinning magnetic platters. On an HDD without TRIM, deleting a file just marks that space as available. The magnetic patterns representing your data stay on the platters until something physically overwrites them. SSDs are completely different. They store data on NAND flash chips and use TRIM to mark blocks for erasure. After TRIM, many SSDs return zeros for those blocks. Garbage collection wipes them clean later. Two totally different technologies, two totally different outcomes.
Can I recover photos I deleted from my phone?
Check your Recently Deleted folder first. On an iPhone, you have 30 days to recover a photo from there. In Google Photos on Android, tap Collections, then Trash. Touch and hold the photo and tap Restore. Also check cloud services: iCloud Photos, Google Photos, Dropbox, whatever you use. If the photos aren't in any of those places, it comes down to your phone type. iPhone: not recoverable (encryption + TRIM). Android with a portable SD card: scan a copy of the SD card for the photo. Android internal storage: if the file's encryption key is gone, check your backups.
What should I do first when I realize files are deleted?
Stop using the device. Right now. This is the single most important thing you can do. Every new write to the storage device risks overwriting your deleted files. Unplug external drives. Shut down the computer if it's an internal drive. Don't install recovery software on the affected drive. Use your phone or another computer to research your options, then follow the appropriate device-specific guide.
Can wiped data be recovered?
On a hard drive, a full format in Windows Vista or later writes zeros to every sector of the volume you format. Once that data is overwritten, no software can read it back. Overwriting can miss data on flash storage, so use the SSD's built-in sanitize function or the phone's factory reset to wipe the whole device securely. On an iPhone, open Settings, tap General, then Transfer or Reset iPhone, and choose Erase All Content and Settings to wipe the keys.
Sources
- Trim (computing)
- Effects of Garbage Collection and TRIM on SSD Performance
- DEVICE_LB_PROVISIONING_DESCRIPTOR structure (ntddstor.h)
- TRIM Support for HDD on Windows and macOS
- fsutil behavior
- TRIMFORCE(8)
- fstrim.timer
- sd.c
- All about SSD, HDD, and storage types
- Capacity (SD/SDHC/SDXC/SDUC)
- format
- Change in the behavior of the format command in Windows Vista and later versions
- Frequently Asked Questions
- Data Protection in Apple devices
- Complete Delete: In Practice, Clicking 'Delete' Rarely Deletes. Should it?
- Delete files or recover deleted files in the Files app on your iPhone or iPad
- Set up and use iCloud Photos
- Back up iPhone
- How to back up your iPhone, iPad, or iPod touch with Windows
- File-based encryption
- IdleMaint.cpp
- Adoptable storage
- dm-raid
- Identifying Hard Drive Sounds and Determining What They Mean
- PhotoRec
- TestDisk
- Image Creation
- Restore recently deleted photos & videos
- Guidelines for Media Sanitization
- How to factory reset your iPhone, iPad, or iPod touch
