Forensic recovery of deleted files: what remains after deletion and how it is found
What really happens when a file is deleted, when it can be recovered and when not: recycle bin, unallocated space, file system tables, carving, thumbnails, shadow copies, app databases, SSDs and encrypted smartphones, tools, mistakes and value in court.
“I deleted it” almost never means “it no longer exists”. When a file is deleted from a computer, in most cases the system does not destroy the data: it marks the space it occupied as free and removes the file from visible listings. Until that space is reused, the content stays on the disk and an expert can often recover it, together with dates, names and paths.
Things change, however, with more recent technologies. On solid-state drives the TRIM command makes the drive itself erase the freed blocks, often within minutes; on encrypted smartphones deletion destroys the keys needed to read the data. Knowing what can realistically be recovered, and how to do it without making things worse, is the starting point of every analysis.
Where recovery comes from
- Recycle Bin
- Files deleted by the user stay in the bin until it is emptied, with original path and deletion date.
- File system tables
- Records of deleted files often remain readable, with names, dates and data location.
- Unallocated space
- Space marked as free contains fragments and whole files not yet overwritten.
- Copies and caches
- Image thumbnails, shadow copies, temporary files, browser cache, backups.
- App databases
- Many apps store messages in databases that keep traces of deleted records.
- Cloud
- Online services’ bins, earlier versions, synchronisations.
The techniques rely on the forensic copy of the medium and on knowledge of its structures, such as Windows’ MFT.
The pages of this topic
Deleted file recovery: how it works
What the system does when a file is deleted, why data remains, what carving is, what changes with SSDs, TRIM, encrypted smartphones, quick and full formatting.
Deleted file recovery: step-by-step procedure
The stages of a proper forensic recovery: stop using the device, acquire the forensic copy, analyse structures and free space, recover, verify, document.
Deleted file recovery: tools
Forensic tools for recovering deleted files: analysis suites, open-source tools, carving programs, app database analysis, and why consumer recovery programs must not be used on the original.
Deleted file recovery: mistakes to avoid
The most common mistakes in recovery attempts: continuing to use the device, installing recovery programs, saving to the original disk, working without a forensic copy, promising impossible results.
Deleted file recovery: value in court
The value of recovered files as evidence: provenance, completeness, certain and uncertain metadata, interpreting deletion, repeatability.
Deleted file recovery: case study
An employee deletes documents from the company computer before resigning: what the expert recovers from the disk, shadow copies and logs, and what they cannot say.
Deleted file recovery: checklist
The checks for proper forensic recovery of deleted files.
Deleted file recovery: frequently asked questions
Short answers to the most common questions about recovering deleted files.