How deleted files can be recovered
Deleting a file usually only marks its record and space as free. The data often stays on the drive until new data overwrites it, so it can sometimes...
SSDs store data in flash and manage it themselves. With TRIM and garbage collection, deleted data can be erased by the drive, so recovery is less certain than on hard disks.
A hard disk can overwrite a sector directly. Flash memory can only be written to empty pages, and it erases in whole blocks. The SSD controller therefore keeps its own map between the addresses the computer uses and the real flash locations.
It also moves data around for wear levelling, to spread wear, and for garbage collection, to free blocks. This happens inside the drive, without the operating system.
TRIM is a command with which the operating system tells the drive which blocks no longer hold used data. The drive may then erase them in the background. After that, reads of those areas can return zeros or other data, depending on the drive.
So a deleted file on an SSD with TRIM may disappear sooner than on a hard disk. Timing is not predictable and depends on the drive and firmware.
Do not promise that deleted data can be recovered from an SSD. A write blocker still stops the computer writing, but it cannot stop the drive's own internal housekeeping once it has power.
Image the drive early, document the drive model and firmware, and note the file system and TRIM state if known. Carving and recovery results may be partial, and the report should say so.
| Hard disk | SSD with TRIM | |
|---|---|---|
| Data after delete | Stays until overwritten | May be erased by the drive |
| Who changes data | Mostly the computer | Computer and drive controller |
| Recovery chance | Often good | Less predictable |
| Same image twice | Usually the same | Can differ if the drive changes data itself |
A laptop SSD is seized a week after a user deleted files. The examiner images it and finds the file records, but the data areas return zeros. The drive had run TRIM and cleanup, so the report notes that content could not be recovered.
The drive's controller can erase freed blocks by itself through TRIM and garbage collection, at times the examiner does not control.
It stops writes from the computer. It does not stop the drive's own internal processes, so repeated images can differ.
Written in our own words from public forensic training material and standards. Last reviewed 24 Nov 2026. Procedures and laws differ by country and agency. Follow your own lab's procedure.