Many believe deleted files are gone forever, but digital forensics shows otherwise. This article explains how specialists recover files, photos, and messages, even from damaged devices, and why true data erasure is much more complex than hitting "Delete."
Digital forensics is a field that reveals how deleted files, photos, and messages can often be recovered long after users believe they've erased them for good. Many people think that hitting "Delete" and emptying the recycle bin permanently removes information from their device. In reality, this is an illusion-what actually happens inside the operating system is much more complex. The question of how to recover deleted files arises not only for individuals who have lost important documents, but also for investigators working on cybercrime cases. Physical data destruction on most systems doesn't happen immediately.
This article explores how file systems and storage devices work, why deleted data is often recoverable, and the advanced techniques used by specialists to extract information-even from broken smartphones or formatted drives.
Digital forensics is an applied technical discipline focused on discovering, extracting, and documenting electronic evidence. Experts in this field work with all types of storage devices: from servers and classic PCs to smartwatches and automotive computers. Their main goal is to access data without altering its original state-otherwise, the evidence loses its legal validity in court.
The term computer forensics appeared much earlier and originally referred only to analyzing desktop hard drives. Today, it is an integral part of the broader concept of digital forensics, which now includes mobile device analysis, network traffic interception, and work with cloud infrastructures.
Data recovery is possible because, when a file is deleted, the operating system typically doesn't erase the actual bits of information. Instead, it removes a pointer in the file table (such as the MFT in NTFS), marking the sector as "free" for new data. As long as no new information overwrites this hidden data, the original file physically remains on the disk. Specialists use software suites that bypass the file table and scan the drive at the physical level, searching for signatures of known file types-such as photos, documents, or backup archives.
The success of deleted data recovery depends directly on the type of storage device. Magnetic hard drives and solid-state drives operate on completely different physical principles, which determines the expert's approach. When a user deletes data, the device's hardware responds in its own unique way.
To avoid losing important documents and complex recovery procedures, it's wise to set up regular automatic backups in advance. You can find the right tool for the job in our guide to the Best Automatic Backup and Data Recovery Software 2025.
Traditional hard disk drives (HDDs) store information on magnetic platters. When files are deleted or the drive is quickly formatted, the magnetic regions do not change polarity. The operating system simply erases the logical path to the file, allowing new data to be written over it.
If the disk hasn't been overwritten or physically destroyed, data can often be retrieved even years later. Forensic experts use professional RAW recovery suites that read magnetic traces sector by sector and reconstruct files based on their unique signatures.
Recovery becomes more challenging if the drive has mechanical damage. In such cases, the disk is opened in a specialized clean room, the read/write heads are replaced, or the platters are transferred to a donor drive to create a precise copy for further analysis.
Solid-state drives (SSDs) have no moving parts and store data in flash memory cells. The main challenge in digital forensics with SSDs is the TRIM command. This system command physically erases memory cells after file deletion, preparing them for quick new writes.
If the controller has already executed the TRIM command, standard software cannot recover the data-those cells now contain only zeros. For a deeper dive into SSD mechanics, see our article Why SSDs Degrade: TBW, NAND Memory Structure, and Wear Leveling.
Nevertheless, recovery is sometimes possible. The TRIM process runs in the background and isn't always instantaneous. Sudden power loss, hardware controller failure, or removing the drive while it's operating can interrupt the wipe, leaving some raw data accessible via direct reading tools.
Modern mobile devices on iOS and Android use UFS or NVMe flash memory. Their architecture is similar to SSDs, with background garbage collection algorithms that irreversibly erase deleted cells.
The main challenge for experts is built-in file-based encryption (FBE). When a photo is deleted, the system may simply destroy its unique cryptographic key. Without the key, the raw data becomes digital noise that cannot be decrypted.
Still, forensic experts rarely give up after one attempt. Even if the original photo is gone, its thumbnails may remain in the gallery cache, messenger logs, or hidden system folders. To avoid such leaks when changing devices, be sure to check out our guide on how to securely erase personal data before selling your phone, laptop, or iPhone in 2025.
Deleting a message "for everyone" creates a false sense of security. Most popular messengers store chat histories in local SQLite databases. When a record is deleted, SQLite doesn't immediately erase the text. Instead, it marks the row as free (moving it to the freelist) for future use. Until the database is vacuumed and overwritten, the deleted text physically remains on the device.
Law enforcement and forensic experts use specialized mobile forensics suites. These tools extract the entire database file, scan SQLite's free blocks, and pull fragments of deleted conversations. Additional evidence often comes from system notification logs and cloud backups, which update independently of the app.
When a smartphone is smashed, submerged, or intentionally damaged, software methods usually fail. In these cases, digital forensics moves into the realm of microelectronics and uses low-level data extraction techniques.
The most well-known radical method is called Chip-Off. Engineers carefully desolder the memory chip from the device's motherboard, place it in a special adapter, and read the data dump directly-bypassing the damaged controller and operating system.
Less destructive methods include JTAG and ISP techniques. The specialist connects micro-wires to tiny test points on the board, originally designed for factory diagnostics, to power the chip and extract data even if the display and peripherals are completely destroyed.
Digital forensics proves that in the digital world, nothing truly disappears with a single click. Operating systems prioritize speed and convenience, so they rarely overwrite deleted information immediately-leaving room for investigators and data recovery engineers.
The success of evidence extraction always depends on the storage medium's physics and the time elapsed since deletion. While old HDDs could preserve information for years, modern SSDs and encrypted smartphones have made the job much harder, forcing experts to move from software scanners to low-level interventions with soldering irons and microscopes. To keep your personal data safe when losing or selling a device, the only reliable solution is to use strong passwords and full hardware encryption.