← ELI5 中文
EXPLAINED SIMPLY

How do deleted files come back?

For anyone who has ever deleted a photo by mistake
No. 389Inside Computers & the InternetPart 42 of 42Inspired by RedditFact-checked Oct 26, 2026
Video2:30 · English voice (AI) · English subtitles

Can't play sound? The illustrated version is right below.

Read the transcript

The full narration of the video.

Deleting a file takes a second, wiping a drive takes two hours. That's about how long it takes to write a one-terabyte spinning drive end to end. So what does the computer really erase in that second? And how can deleted files come back?

Even after you empty the recycle bin, files can often be recovered. Picture the drive as a thick notebook, with each file written on a few of its pages. At the front is a contents page: which file sits on which pages.

Hit delete, and the computer does just one thing: it crosses out that line and marks those pages "free to reuse." Not a single word on those pages is erased. That's why deleting is so fast. Truly erasing means rewriting every page—hence the two hours.

If you're lucky, the crossed-out line is still readable—follow the page numbers and it's back. If the contents are gone too, flip page by page and look at how things begin. Every file type opens with a few fixed characters, and photos differ from documents. Spot them, and you know a photo starts right here.

That's what recovery software does. In real terms: the contents page is called the file table, and "free to reuse" means that space is marked empty. Delete a big file and free space jumps at once, yet the old data stays right where it was.

But the notebook keeps being used. New files get written onto the pages marked free. Once new data lands, the old is gone. Paper keeps faint marks, but a drive doesn't: overwrite it once, and even a lab can't read it back. So after a mistaken delete, stop, and save nothing else to that drive.

And before selling an old computer, deleting isn't enough—use the built-in erase or reset. But that's the old spinning kind of hard drive. Phones and most new computers use solid-state drives, and their notebook has a cleaner on duty.

The moment you delete, the computer tells the drive: these pages aren't needed. In idle moments, the drive wipes them itself. Researchers tested a batch of solid-state drives: with this feature on, most deleted data was gone for good. So is a deleted photo still there? It depends where it lived: on a spinning drive, probably, until something covers it; on a phone or SSD, it's likely wiped soon.

For photos that matter, don't count on recovery—keep a second copy. What's the most painful thing you've ever deleted by mistake? Did you get it back?

1

Deleting takes a second.
Wiping takes two hours.

1 second 2 hours

Writing a one-terabyte spinning hard drive from start to end takes about two hours. Deleting a file is done in a blink.

The gap is that huge because deleting never erases anything. It just crosses out one line.

2

A thick notebook
and its contents page

Picture the drive as a thick notebook. Each file is written on a few of its pages. At the front is a contents page: which file sits on which pages.

Contents pages Doc2 Sheet3–4 Photo6–7 reusable reusable

Hit delete, and the computer does just one thing: it crosses out that line and marks those pages "free to reuse." Not a single word on those pages is erased.

DELETE
Cross out one line
Only one line changes, so it takes a second
TRULY ERASE
Rewrite every page
The whole notebook gets rewritten, so it takes two hours

Emptying the recycle bin just crosses out the line again. So files can often still be recovered.

3

Two ways
to get it back

① Follow the contentsIf the crossed-out line is still readable, follow its page numbers and the file is back.
② Check how pages beginIf the contents are gone too, flip from the start. Every file type opens with a few fixed characters.

A photo (JPEG) starts with the bytes FF D8 FF; a PDF starts with %PDF. Find a page that begins with FF D8 FF, and you know a photo starts right there.

That's exactly what recovery software does.

4

The real names
for the notebook parts

Contents pageFile tableRecords where each file sits on the drive
Free to reuseFree space"Available space" jumps right after a delete
How pages beginFile headerThe fixed bytes each file type starts with
Writing new wordsOverwriteA new file lands in the free space

Delete a big file and free space jumps at once. Yet the old data stays right where it was, just marked as free.

5

Overwrite once,
and it is gone

The notebook keeps being used. When you save something new, the computer writes it onto pages marked "free to reuse." Once new data lands, the old is gone.

Paper: faint marks Drive: nothing left

Erased paper still keeps faint marks, but a drive doesn't. Guidance from the US National Institute of Standards and Technology is clear: overwrite it once, and even the best lab can't read it back.

After a mistaken deleteStop. Save nothing else to that drive. The more you save, the more likely it gets overwritten.
Before selling a computerDeleting isn't enough. Use the built-in "Erase" or "Reset" to clear the whole drive.
6

Phones have a cleaner
on duty

All of that is about the old spinning kind of hard drive. Phones and most new computers use solid-state drives, and the rules are different.

reusable

The moment you delete, the computer tells the drive: these pages aren't needed. In idle moments, the drive wipes them itself. That message is called TRIM, and today's phones and computers usually have it on by default.

Researchers tested a batch of solid-state drives: with TRIM on, most deleted data could not be recovered at all.

Is the photo still there? It depends on the drive
On a spinning drive, probably, until something covers it. On a phone or SSD, it's likely wiped soon. For photos that matter, don't count on recovery: keep a second copy.
UP NEXT

How a Web Page Gets Made

Using a sign-up page for a seafood dinner: walls, paint, switches, a shared notebook and a street address, no code required.

No. 1 · 5 minKeep going →
← Back to ELI5