Here is a thing that trips people up almost every time it comes up in conversation: deleting a file in Windows does not necessarily erase its contents immediately. Sending it to the Recycle Bin is only a reversible holding step. Emptying the bin or pressing Shift+Delete removes the file from normal view and releases its storage allocation, but what happens to the underlying data depends heavily on whether the drive is a mechanical hard disk or an SSD.
On a traditional hard drive, the magnetic data usually remains where it was until Windows eventually writes something else over the same space. On an SSD, a storage feature called TRIM can make deleted data inaccessible much sooner. That distinction matters because the familiar claim that “deleted files are still sitting on the drive” is broadly true for hard drives, but increasingly unreliable as a description of modern solid-state storage.
The gap between what “delete” sounds like and what it technically does is why Windows File Recovery and third-party recovery utilities can sometimes restore files that are no longer visible. It is also why people preparing an old computer for sale are told to clean the drive rather than simply empty the Recycle Bin. The mechanism is less mysterious than the recovery software makes it appear.
Every file system maintains metadata describing its files and their storage. On NTFS, the file system used by most internal Windows drives, that metadata centres on the Master File Table, or MFT. Each file has at least one MFT record containing information such as its name, size, timestamps and attributes, along with a description of where its contents are stored. Very small files can even have their contents stored inside the MFT record itself.
When an NTFS file is permanently deleted, its MFT entry can be marked free for reuse and the clusters allocated to its contents become available to the file system. The deletion operation does not normally write zeros through every one of those clusters. On a hard drive, that means the old magnetic patterns can remain readable even though File Explorer no longer has an active record pointing to them.
The reason is mostly efficiency. Overwriting a 4 GB video would require Windows to write through roughly 4 GB of storage before the deletion could finish. Releasing the allocation requires far less work, while a tool designed for secure deletion must deliberately overwrite the relevant disk space. Normal deletion is therefore closer to updating an index than physically scrubbing the medium.
What happens next on a hard drive depends on subsequent activity. Windows may reuse the freed clusters for a browser cache, an application update, a downloaded file or almost anything else written to the volume. Microsoft warns that simply continuing to use a computer can create new files that overwrite the free space where a deleted file once lived, which is why recovery attempts should begin before more data is written to the affected drive.
Recovery programs take advantage of whatever remains. PhotoRec is a signature-based recovery utility, meaning it searches raw storage for patterns identifying formats such as JPEG images or Microsoft Office documents. Other tools can examine surviving file-system records as well. If all the required clusters remain intact, a file may return normally. If some have been reused, the result may be incomplete or corrupted. Once the relevant contents have genuinely been overwritten, ordinary software recovery has nothing left to reconstruct.
SSDs complicate that neat story. Windows and other operating systems can send a TRIM hint to the underlying storage system, telling it that certain ranges no longer need to be preserved. The controller can then reclaim those flash pages as part of its own internal management. From the operating system’s perspective, later reads from a trimmed range may return zeros, other fixed values or, in some circumstances, the original data.
That means TRIM should not be described as an immediate command to physically wipe specific flash cells. It is a notification that gives the SSD permission to stop maintaining the old contents. In practice, it often makes conventional recovery from a modern SSD far less successful than recovery from a hard drive, but the exact timing and result depend on the drive, controller, connection and firmware.
The Recycle Bin is a separate layer above all of this. Windows can send a file to the Recycle Bin instead of permanently deleting it, preserving enough information to restore it to its original location. Emptying the bin then performs the permanent file-system deletion. Shift+Delete simply bypasses the reversible holding step. Neither action should be confused with verified sanitization of the storage medium.
If you want to make a deleted file difficult to recover from a mechanical hard drive, Microsoft’s SDelete can overwrite an existing file or clean data remaining in unallocated disk space. SSDs call for more caution because file-by-file overwriting does not provide the same assurance that every physical flash location containing old data has been sanitized. For solid-state storage, encryption and device-level sanitization are safer foundations than assuming that one overwrite operation reached every possible copy.
For a computer you plan to sell or donate, Windows provides a practical consumer option. Under Reset this PC, choosing Remove everything and enabling Clean data removes files and cleans the drive, making recovery more difficult. Microsoft also states that this feature is intended for consumers and does not meet government or industry data-erasure standards, so highly sensitive drives may require a manufacturer-supported sanitize function or a process based on NIST’s media-sanitization guidance.
Full-drive encryption is another important part of the answer. BitLocker encrypts entire Windows volumes, meaning information read directly from a locked drive is not useful without the required key. Encryption does not replace proper sanitization in every situation, but enabling it before sensitive files are created provides protection that cannot be added retroactively by deleting those files later.
The best analogy is not a shredder. It is a library catalogue. Deleting a file removes or retires the catalogue entry and tells the system that the shelf space may be reused. On a hard drive, the book can remain on that shelf until another one replaces it. On an SSD, the storage controller may clear or repurpose the shelf after receiving a TRIM notice.
It belongs in the same family of quiet gaps between the names of computer features and what those features actually promise, such as incognito mode not making a user anonymous or HTTPS not hiding every clue about a site’s destination. Once the mechanism is clear, the practical consequences are clearer too: keep backups for accidents, avoid writing to a drive when recovery matters, encrypt sensitive storage and clean a device properly before handing it to someone else.
— Justin