When a file is "permanently deleted" in Windows 10, it doesn't go to a specific, user-accessible folder.
The data is not immediately erased, but rather, the operating system marks the storage space it occupied as free and available for new data to be written. This process is crucial to understanding where permanently deleted files are and how they can be recovered.
The technical process of file deletion
The location of your deleted file depends on your storage drive and the specific method of deletion.
For traditional Hard Disk Drives (HDDs):
- When you send a file to the Recycle Bin, its link in the file system's "table of contents" is simply moved to a different location. The file's data remains untouched.
- When you "permanently" delete the file by emptying the Recycle Bin or using
Shift + Delete, the entry in the file system's table is removed entirely. - The space on the drive where the file's data resides is then marked as "unallocated" or free space, making it available for Windows to write new data over it. Until that happens, the data remains on the disk, making it potentially recoverable.
For Solid-State Drives (SSDs):
- SSDs use a process called TRIM to optimize performance.
- When you permanently delete a file, the TRIM command is sent to the SSD controller.
- This command immediately overwrites the file's data with zeros, ensuring the space is clean and ready for a fast new write operation.
- For this reason, recovering permanently deleted files from an SSD is often impossible once the TRIM command has executed.
Methods for recovering permanently deleted files
The possibility of recovery depends on the storage device and how much time has passed since deletion. The longer you wait, and the more you use your computer, the more likely the data will be overwritten and lost forever.
1. Restore from a backup
If you have been using a built-in Windows backup feature, this is your most reliable option.
- File History: If you have enabled File History, you can restore previous versions of files and folders.
- Type "Restore files" in the Start menu search bar and select Restore your files with File History.
- Use the arrows to navigate through the different backup versions to find and restore your deleted file.
- Backup and Restore (Windows 7): This legacy feature, still available in Windows 10, can restore files from a previously created backup.
- Open the Control Panel, navigate to System and Security, and select Backup and Restore (Windows 7).
- Choose the option to Restore my files and follow the on-screen prompts.
- Cloud backup: If you use a cloud service like OneDrive, check its online Recycle Bin. OneDrive often retains deleted files for a set period.
2. Use the Windows File Recovery tool
For situations where no backup exists, Microsoft offers a command-line utility for recovering lost files.
- Download and install Windows File Recovery from the Microsoft Store.
- Open the app and use the command
winfrwith the appropriate switches to specify the source drive, destination drive, and the type of scan. For example, a command to recover all PDFs from your C: drive to an external F: drive might look like:winfr C: F: /regular /n *.pdf.
3. Use third-party data recovery software
There are many data recovery applications available that can scan your hard drive for fragments of deleted data. These are your last resort if you haven't been using a backup system.
- Examples: Popular software includes Disk Drill, Recuva, and Stellar Data Recovery.
- Key recommendation: Install the software on a different drive than the one containing the deleted files to avoid overwriting the very data you are trying to recover.
Summary: What you must do immediately
If you realize you have permanently deleted a file, your top priority is to prevent your computer from overwriting the data.
- Stop using the affected drive immediately: Avoid saving new files, installing software, or even browsing the web on that drive until you can attempt a recovery.
- Act quickly: The longer you wait, the lower your chances of success.
- Use recovery tools from a different drive: If using data recovery software, install it on a separate drive (like an external USB drive) to prevent overwriting.