Inside the lab: 2M+ followers on YouTube, TikTok & Instagram  We buy phones, tablets & laptops, working or broken Get your offer
Data Recovery Guide

Can You Recover Deleted Files? It Depends on Your Device

Updated November 24, 2026
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.

  1. Hard drive (HDD): data persists on the platters
  2. USB flash drive: most sticks don't get TRIM
  3. SSD: TRIM marks blocks for erasure
  4. 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.

DeviceWhyFull Guide
Hard Drive (HDD)Without TRIM, data persists on magnetic platters until overwritten.Read Guide
SSDAfter TRIM, many SSDs return zeros before the blocks are erased.Read Guide
USB Flash DriveOn a stick without TRIM, data stays until overwritten.Read Guide
SD CardSimple file systems. Windows doesn't trim FAT or exFAT on file deletion.Read Guide
iPhoneTRIM + per-file hardware encryption. Permanently deleted files are unreadable.Read Guide
Not sure what type of storage your device uses? Desktop computers usually have either an HDD or SSD (check your model specs). Check your laptop's specs too. External hard drives are HDDs. Thumb drives are USB flash drives. Look for the SD logo on a camera memory card. If you're still not sure, contact us and we'll help you figure it out.

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.

Illustration: On an SSD that uses TRIM, deleting a file signals the controller to erase the blocks where the file was stored.Illustration
On an SSD with TRIM, deleting your file signals the drive to erase that file's blocks in the background.

Devices 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.

Illustration: A deleted file's entry is crossed out in a hard drive's index. The file's contents sit intact on the platter.Illustration
On a hard drive, deleting your file marks its space free, leaving the data on the platter until something overwrites it.

The 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.

Don't waste money on SSD recovery software. If the drive has erased those blocks, software has nothing to piece back together. If TRIM has run, treat the file as gone and check your backups. Our SSD guide explains the technical details and the exceptions.

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.

If the stick still reads and the files haven't been overwritten, try recovery software on a copy. Our USB flash drive guide walks you through the entire process step by step.

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.

Accidentally deleted photos from your camera's SD card? Don't put the card back in the camera. Don't take new photos on it. Remove it immediately and follow our step-by-step SD card recovery guide.

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.

Illustration: Each file on an iPhone has its own key. Permanently deleting a file breaks its key and wipes its storage block, leaving nothing readable there.Illustration
Permanently deleting a file from your iPhone destroys its key and wipes the space where it was stored.

The 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.

Beware of scams. Any company or software that claims to recover permanently deleted files from an iPhone's storage is lying to you. This includes "forensic" tools marketed to consumers. Without the file's key, those tools can't read it. We explain exactly why in our detailed iPhone data recovery guide.

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.

Bottom line on Android: For internal storage, it matters whether the file and its encryption key still exist. If the files were on a card set up as portable storage, stop using it and scan a copy for the missing files. If you have a Google Photos backup or another cloud sync service, check there first.

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: A deleted file sits in space marked free. New saves, downloads, and background writes land in that space and start to cover it.Illustration
Even background activity can overwrite a deleted file where your drive has marked space free, so stop using the drive.
  • 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
A mistake to avoid: downloading recovery software to the same drive you're trying to recover. That installation could be writing directly over the deleted files. If you need recovery software, install it on a DIFFERENT drive. If the affected drive is healthy, select it in TestDisk. Under Advanced, select the partition that held your files and choose Image Creation. Save the image on another drive with room for the whole partition, then scan that copy.

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.

SituationRecommendationWhy
Accidentally deleted files from a healthy hard driveTry software firstRecovery software handles simple deletions well when the drive is working normally.
Deleted files from a USB flash driveTry software firstDeleted files can stay on the stick until new data overwrites them.
Formatted an SD card in your cameraTry software firstA quick format can leave photos intact. PhotoRec can look for them on a copy of the card.
Hard drive is clicking or beepingCall a professionalHard 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 computerCall a professionalCould be electronic or mechanical failure. Software can't help if the drive isn't visible.
Deleted files from an SSDCheck your backups firstIf the drive has erased the blocks, software has nothing to read.
Permanently deleted from iPhoneCheck backups onlyNo 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 failureCall a professionalMulti-drive configurations require specialized knowledge of RAID layouts and parity.
Drive was dropped or physically damagedCall a professionalPhysical impact can damage heads, platters, or electronics. Running it risks further damage.
When in doubt, call first. At MDrepairs, we offer diagnostics. We'll tell you honestly whether your situation is a DIY fix or whether it needs professional recovery. (732) 933-7717

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

Lost your data?
Let's assess your options.

With standard service, we usually start your diagnostic in 4–6 weeks. Recovery takes additional time depending on what we find. Start with a quote. $100 diagnostic, credited toward a successful recovery. If we can't get any files back, there's no recovery fee.

Split the cost of your recovery with Affirm. Explore financing Subject to eligibility.

Devices recovered at our lab

These rows come from BenchKey, the ticket system we built for our own shop. Customer names, contact details and descriptions are left out.

Opened laptop hard drive with platter and heads visible at our Lincroft lab
An opened laptop hard drive shows its platter and heads at our Lincroft lab.
  • iPhone 16 ProLiquid damage · mailed in from Missouri
  • PhoneLiquid damage · mailed in from Michigan
  • RAID 1 arrayArray failure · mailed in from Georgia
  • External hard driveDropped · mailed in from Alabama
See real case studies
4.6 · 345 Google reviews$100 diagnostic, credited toward a successful recovery
Start your mail-in recovery