Digital Forensic Tools

How deleted files can be recovered

Short answer

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 be recovered.

What delete really does

When you delete a file, most systems mark the directory entry or file record as deleted and mark the clusters as free. They do not wipe the content. The data stays until the space is reused.

Emptying the Recycle Bin or Trash is the same idea. The file is first moved, and later its record and space are freed.

Two ways to recover

Metadata recovery uses what is left of the file record. If the name, size and cluster list still exist, the file can be rebuilt with its original name and times. This works well soon after deletion.

File carving works without file system records. It searches raw data for file headers and footers. It gives content but usually no name or times. If the record is gone, carving is the next step.

What limits recovery

New writes can overwrite the data. Partly overwritten files give damaged output. Drives with TRIM may erase freed blocks. Secure erase tools and encryption also reduce or end recovery.

Work on a forensic image, never on the original drive. Procedures and laws differ by country and agency, so follow your lab's own procedure for handling recovered data.

Metadata recovery and carving

Metadata recoveryFile carving
Needs file system recordsYesNo
Original name and timesOften keptUsually lost
Fragmented filesHandled if clusters are listedOften fails
Typical useSoon after deletionWhen records are gone

Example

A user deletes a spreadsheet and empties the Recycle Bin. On the image, the examiner finds the file's MFT record still marked free with its name and cluster list. The clusters have not been reused, so the file is recovered whole.

Common mistakes

  • Running recovery software and saving files onto the evidence drive.
  • Believing deleted always means gone.
  • Believing deleted always means recoverable.
  • Not hashing the recovered files and noting how they were found.

Key terms

Deleted file
A file whose record is marked free but whose data may still exist.
Overwrite
Writing new data over old data so the old data is lost.
Recovery
Getting deleted data back from a drive or image.
Carving
Finding files in raw data using their structure.

Questions you may be asked

Why can deleted files often be recovered?

Deleting normally frees the record and clusters but does not erase the content until it is overwritten.

Why should recovery be done on an image?

Writing to or changing the original could destroy evidence. An image can be hashed and repeated safely.

Free tools to practise with

Learn more

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.