01“Deleting a file” can mean a few different things

When we say “delete a file,” different things may actually happen.

Move to the recycle bin

The file usually still exists; it has just been moved to a special place

Permanently delete

The file system removes its normal reference and marks the space as reusable

Secure erase

The goal is to make the original data difficult to recover; the method depends on the device

02What happens when a file goes to the recycle bin?

On desktop operating systems, an ordinary delete often first sends the file to the recycle bin or trash.

The most important thing is that the file usually has not been permanently deleted yet.

Original folder

The file was here before

Recycle bin

The file is moved to a special place managed by the system

That is why choosing “Restore” can usually put the file back where it was.

03Does a file really disappear right away when permanently deleted?

Not necessarily. For many file systems, the first step is usually not to immediately change every byte to 0.

More often, the file system stops treating those storage areas as part of the file and marks them as available for reuse.

Before deletion
ABCD

These areas belong to a file

After deletion
ABCD

The file system treats them as reusable

04What does “space becomes available” mean?

Imagine a library register that says, “Slots 25–30 belong to Travel Photos.”

After deletion, the librarian might simply cross out that entry and write: These slots can be used by another file later.

Old file dataMay temporarily remain in its original location
New file is writtenMay overwrite the old storage areas
Before10110101
→
Later00101110

Once new data overwrites the old data, recovery usually becomes much harder or even impossible.

05Why can deleted files sometimes be recovered?

If the old data has not been overwritten after deletion, recovery software may sometimes find the leftover data again.

Look for remnants

Check file-system records or data patterns on the disk

Try to rebuild the file

Reconstruct contents from leftover locations, structure, and format

Success is not guaranteed

If the data was overwritten, only part—or none—may be recoverable

06Why are SSDs different from hard drives?

Hard drives and SSDs store data differently, so their behavior after deletion is not exactly the same.

For an SSD, the operating system and file system often use a mechanism such as TRIM to tell the SSD, “The data in these logical blocks is no longer needed.”

Operating system / file system

These blocks are no longer needed

SSD controller

Can prepare for garbage collection and erasing later

This helps an SSD manage flash memory efficiently and can make deleted data harder to recover than data on a traditional hard drive.

07If deleted files can be recovered, how can you delete them more safely?

For ordinary everyday files, the operating system’s normal delete function is enough.

But if you are handing a device to someone else, or it contains data you do not want recovered, do not assume that “emptying the recycle bin solves everything.”

Ordinary deletion

Suitable for everyday file cleanup

Device reset

Before handing over a device, use the system’s secure reset or erase feature

Encrypted storage

Modern devices often use full-disk encryption to improve data protection

What have you learned?

  • Deleting a file can mean moving it to the recycle bin, permanently deleting it, or securely erasing it.
  • Moving a file to the recycle bin usually does not permanently delete its data.
  • Permanent deletion often removes the directory record and marks the storage space reusable rather than immediately clearing every bit.
  • Old data may remain until it is overwritten, which is why recovery can sometimes work.
  • Writing new data may overwrite deleted content and make recovery difficult.
  • SSD TRIM marks logical data as no longer needed; actual erasing is managed later by the drive.
  • TRIM does not mean “every flash cell is instantly cleared.”
  • For sensitive data, use secure erase, reset, or encryption features provided by the system or device.

Next question: Files help save data—but how are software and programs related? Next: How Are Software and Programs Related?