What happens when you delete a file on Windows

When you delete a file on Windows, the file itself usually stays on your hard drive — the operating system just removes the pointer that tells Windows where to find it. This means the space is marked as available for new data, but the file's contents remain until something else writes over that spot. The longer you wait after deletion, the more likely new files have overwritten the deleted data, making recovery impossible.

This is why acting quickly matters. If you deleted a file yesterday and have been using your computer normally since then, recovery is still possible. If you deleted it three weeks ago and have installed programs, downloaded files, or run Windows updates, the chances drop significantly.

Key Takeaways

  • Windows keeps deleted files in the Recycle Bin for a set period — usually 30 days — before permanently removing them, and you can restore them from there with a right-click.
  • File recovery software like Recuva (free) or EaseUS Data Recovery Wizard can scan your hard drive for deleted file fragments, but success depends on how much new data has been written since deletion.
  • System Restore can recover files if you deleted them recently and a restore point was created after the deletion, though this rolls back your entire system to an earlier date.
  • External hard drives and cloud backups prevent data loss entirely, but only if you set them up before the deletion happens.

Check the Recycle Bin first

The Recycle Bin is your first stop. When you delete a file by pressing Delete or using the right-click menu, Windows moves it to the Recycle Bin rather than erasing it immediately. Open the Recycle Bin by double-clicking the icon on your desktop, or search for "Recycle Bin" in the Windows search box.

Look for the file by name or by the date it was deleted. If you find it, right-click and select "Restore" — the file returns to its original location. If the Recycle Bin is empty, the file has been permanently deleted from this location, and you will need to use recovery software or System Restore.

Note that files deleted from external drives, USB sticks, or network locations often bypass the Recycle Bin entirely and are permanently deleted right away. Files deleted using Shift+Delete also skip the Recycle Bin.

Use File Recovery software to scan your drive

Recuva (made by Piriform, owned by Avast) is free and works well for most people. Download it from ccleaner.com/recuva, install it, and run the program. Recuva scans your hard drive for file fragments and shows you what it finds — deleted photos, documents, videos, and other file types appear in a list with a green, yellow, or red indicator showing the likelihood of successful recovery.

Select the files you want to recover, choose a destination folder (use an external drive if possible, not your main hard drive), and let the software write them back. Recovery usually takes a few minutes to an hour depending on drive size and how many files you are scanning for.

EaseUS Data Recovery Wizard (free version available at easeus.com) works similarly and has a slightly more polished interface. MiniTool Power Data Recovery (free version at minitool.com) is another solid option. All three scan for deleted files, show you previews before recovery, and let you choose where to save recovered files. The free versions have limits on how much data you can recover in one session — usually 500 MB to 2 GB — but that is enough for most people.

Restore from a System Restore point

If you deleted a file recently and Windows created a restore point after the deletion, System Restore can roll your entire system back to that earlier date. This is a nuclear option — it undoes all changes made after that restore point, including software installations and Windows updates — but it recovers the deleted file.

Open System Restore by searching for "System Restore" in the Windows search box and selecting "Create a restore point." Click the "System Restore" button, choose a restore point from before the deletion, and follow the prompts. Your computer restarts and returns to that earlier state. After the restart, the deleted file should be back in its original location.

System Restore only works if a restore point exists from after you deleted the file. Windows creates restore points automatically before major changes (like Windows updates) and when you create them manually. If no suitable restore point exists, this method will not help.

Recover files from OneDrive or cloud backup

If you use OneDrive (Microsoft's cloud storage), deleted files go to the OneDrive recycle bin, not your computer's Recycle Bin. Open OneDrive in your web browser at onedrive.live.com, click the recycle bin icon, find the file, and click "Restore." You have 93 days to recover files from OneDrive before they are permanently deleted.

If you use Google Drive, Dropbox, or another cloud service, each has its own recycle bin or trash folder. Check the service's website or app — most keep deleted files for 30 days. This is one reason cloud backup is valuable: even if you delete a file locally and empty your Recycle Bin, the cloud copy often remains recoverable for weeks.

Prevent future data loss with regular backups

Recovery software works best when you have not used your computer much since the deletion. The more you use it, the more new data overwrites the deleted file, making recovery impossible. The real solution is not recovery — it is prevention.

Set up an external hard drive with File History (built into Windows). Go to Settings > System > Storage > Advanced Storage Options > Backup Options, turn on File History, and choose an external drive. Windows automatically backs up your files every hour. If you delete something, you can restore it from any backup point, even months later.

Alternatively, use a cloud service like OneDrive, Google Drive, or Dropbox. These back up files as you save them and keep deleted files in trash for weeks. The combination of local backup (external drive) and cloud backup (OneDrive or similar) gives you two chances to recover anything you delete by mistake.

What recovery software cannot do

File recovery software has real limits. It cannot recover files that have been overwritten by new data — once the hard drive writes new information to that space, the old file is gone permanently. It also cannot recover files from a drive that has been encrypted with BitLocker or another full-disk encryption tool unless you have the recovery key.

Recovery is also slower and less reliable for solid-state drives (SSDs) than for traditional hard drives. SSDs use a feature called TRIM that automatically erases deleted file fragments to improve performance, which makes recovery much harder. If your computer has an SSD, your best option is a recent backup, not recovery software.

Frequently Asked Questions

Can I recover files deleted weeks or months ago?

Possibly, but it depends on how much you have used your computer since the deletion. If you deleted a file two months ago but have not installed programs or downloaded large files since then, recovery software might find it. If you have been using your computer normally, new data has likely overwritten the deleted file, making recovery impossible.

Will recovery software find all my deleted files?

No. Recovery software finds file fragments that have not been overwritten yet. Heavily fragmented files or files that have been partially overwritten may be unrecoverable or corrupted. The software shows you a preview before recovery so you can see which files are likely to work.

Is it safe to use free recovery software?

Yes, reputable free tools like Recuva, EaseUS Data Recovery Wizard (free version), and MiniTool Power Data Recovery are safe. Download only from their official websites, not from third-party download sites. The free versions have limits on how much data you can recover per session, but they do not install malware or spy on you.

What if I deleted a file from an external drive or USB stick?

Files deleted from external drives usually bypass the Recycle Bin and are permanently deleted right away. However, recovery software can still scan the external drive and find deleted file fragments. Plug the external drive into your computer, run recovery software, and select the external drive as the location to scan.

Can I recover files after a factory reset?

Factory reset erases your entire hard drive and installs a fresh copy of Windows. Recovery software may find some file fragments afterward, but success is unlikely because the reset process writes new data across most of the drive. If you need files from before a factory reset, your only real option is a backup you made before the reset.