Roundetbeta

Deleting a file and erasing its bytes are different

Hard drives may retain deleted contents; SSDs can stop exposing them before physical erasure.

Jeffery CuiOctober 29, 20262 min read
Researched with Codex

Deleting a file often removes it from ordinary use before it removes the stored contents. A conventional hard drive can retain those bytes until later writes replace them, while an SSD can discard access sooner after a TRIM notification and erase flash blocks later, making recovery and secure disposal different tasks.

First check whether the file is still in a recoverable bin. Apple’s Mac guidance says local items remain in Trash until it is emptied, with Put Back available before then; cloud services and backups may hold separate copies. Emptying the bin moves the problem beyond that normal restore route, but an absent filename alone cannot establish that all of the contents have vanished.

On a hard drive, releasing a file’s space generally allows new data to use it without requiring the old bytes to be overwritten immediately. Microsoft’s recovery guidance explains that deleted file space is marked free and may still contain recoverable data. It advises minimizing computer use after an accidental deletion because ordinary activity can overwrite that space, and saving recovered files to a different drive.

An SSD manages flash differently because it cannot simply overwrite an existing page in place. Microsoft’s TRIM explanation describes writing elsewhere, reclaiming blocks through garbage collection, and notifying the device which sectors are no longer needed. TRIM gives permission to discard contents rather than promising an immediate physical erase, so there is no universal countdown during which an SSD file remains recoverable.

For disposal, ordinary deletion or overwriting individual files gives weaker assurance than a suitable device sanitization procedure. NIST’s September 2025 guidance explains that spare cells and wear leveling can leave data outside the locations reachable through normal writes, and recommends matching the method to the storage medium. Use the maker’s documented erase workflow and check completion; an erase of one device still does not address independent backups or cloud copies.

After an accidental deletion, preserve recovery options immediately; before handing over a drive, complete and verify its supported sanitization process.

Sources4

  1. 1Apple — Delete files and folders on Macsupport.apple.com
  2. 2Microsoft — Windows File Recoverysupport.microsoft.com
  3. 3Microsoft — Apps can send TRIM and Unmap hintslearn.microsoft.com
  4. 4NIST SP 800-88 Revision 2 — Guidelines for Media Sanitizationnvlpubs.nist.gov

Related research