Where deleted files actually go

When you delete a file on Windows, Mac, or Linux, it does not disappear immediately. The file moves to a trash or recycle bin folder that holds it for a set period — usually 30 days on Windows, 30 days on Mac, and varies by Linux desktop. During that window, you can restore the file to its original location by opening the trash, finding the file, and choosing restore or move back.

If you have already emptied the trash or recycle bin, the file is not gone from your hard drive yet. The operating system simply marks the space as available for new data. The actual file remains on disk until new files overwrite it. This is why recovery is possible immediately after deletion but becomes harder the longer you wait and the more you use the computer.

Key Takeaways

  • Check your trash or recycle bin first — files stay there for 30 days on most systems and can be restored in seconds.
  • If trash is empty, stop using the computer immediately, because every file you open or save overwrites space where your deleted file might be.
  • Recovery software like Recuva (Windows), EaseUS Data Recovery Wizard, or Disk Drill can find deleted files on your hard drive if they have not been overwritten.
  • Files on external drives and USB sticks recover more reliably than files on your main drive, because the main drive gets written to constantly.
  • Cloud-synced files like those in Google Drive or OneDrive may be recoverable through the web interface even after local deletion.

Restore from trash or recycle bin

On Windows, open File Explorer, click the Recycle Bin icon on your desktop or in the sidebar, find the file you deleted, right-click it, and select Restore. The file returns to the folder it came from. If you do not see a Recycle Bin icon on your desktop, search for "recycle bin" in the Windows search box and open it that way.

On Mac, click the Finder icon in the dock, then click Trash in the sidebar. Find your file, right-click it, and select Put Back. The file returns to where it was before deletion. If Trash is not visible in the sidebar, open Finder preferences, click Sidebar, and check the Trash box.

On Linux, the location depends on your desktop environment. GNOME and KDE both have a Trash or Bin folder accessible from the file manager sidebar. Open it, find your file, right-click, and select Restore or Move Out of Trash. If you cannot find a trash folder, your system may not have one — some Linux setups delete files permanently without a recovery step.

Use recovery software if trash is empty

Recuva (Windows only, free) is the most straightforward option. Download it from ccleaner.com, install it, run it, and select the drive where the file was deleted. Recuva scans for deleted files and shows them in a list with a green, yellow, or red indicator — green means recovery is very likely, red means the space has probably been overwritten. Select the file and click Recover, then choose a different drive to save it to (never save to the same drive where you are recovering from).

EaseUS Data Recovery Wizard (Windows and Mac, free version available) works similarly. Download from easeus.com, run the scan on the drive, and preview files before recovery. The free version recovers up to 2 GB of data. Save recovered files to an external drive or a different partition than the one you are recovering from.

Disk Drill (Windows and Mac, free version available) offers a visual preview of recoverable files and can scan external drives. Download from cleverfiles.com, select your drive, run a scan, and recover files to a safe location. The free version has limits on file size and quantity.

All three tools work best if you run them within hours or days of deletion. The longer you use your computer after deletion, the more likely new files have overwritten the space where your deleted file sat. Do not install recovery software on the same drive you are trying to recover from — use an external drive or a different computer if possible.

Recover files from external drives and USB sticks

Files on external hard drives and USB sticks recover more reliably than files on your main computer drive, because external drives are used less frequently and overwriting happens more slowly. Connect the external drive to your computer, run Recuva, EaseUS, or Disk Drill, select the external drive from the list, and scan it. The process is identical to recovering from an internal drive, but your success rate is usually higher.

If the external drive is not recognized by your computer, try a different USB port or cable before assuming the drive is damaged. Some recovery software can work with drives that the operating system does not fully recognize, so attempting a scan is still worth trying.

Recover files from cloud storage

If your deleted file was stored in Google Drive, OneDrive, Dropbox, or iCloud, you may be able to recover it through the web interface even if you deleted it from your computer. Open the cloud service in a web browser, look for a Trash, Bin, or Recently Deleted folder, find your file, and restore it. Google Drive keeps deleted files for 30 days, OneDrive for 93 days, Dropbox for 30 days (or longer on paid plans), and iCloud for 30 days.

This method works regardless of whether you emptied your computer's trash, because the cloud service maintains its own deletion timeline separate from your local system. If you use cloud sync software like Google Drive for Desktop or OneDrive, deleting a file on your computer also deletes it from the cloud after a short delay, so check the cloud trash immediately if you realize the deletion was a mistake.

Prevent future accidental deletions

The most reliable way to recover a deleted file is to not rely on recovery at all. Set up regular backups using built-in tools: Windows Backup (Settings > System > Backup), Mac Time Machine (System Settings > General > Time Machine), or Linux tools like Timeshift or Déjà Dup. These create snapshots of your entire system that you can restore from, including deleted files, at any point in the past.

For important files, enable version history in cloud storage. Google Drive, OneDrive, and Dropbox all keep previous versions of files for a set period. If you accidentally overwrite or delete a file, you can restore an earlier version without needing recovery software. You can also move important files to read-only folders or use file locking features to prevent accidental deletion.

When recovery is not possible

Recovery fails when the space where your file was stored has been completely overwritten by new data. This happens faster on solid-state drives (SSDs) than on traditional hard drives, because SSDs manage storage differently and can overwrite space more aggressively. If you have been using your computer heavily since the deletion — installing programs, downloading files, or running updates — recovery becomes unlikely.

Physical damage to a hard drive or SSD also prevents recovery. If your drive makes clicking sounds, does not appear in the file manager, or shows errors when you try to access it, the hardware itself may be damaged. In these cases, professional data recovery services exist, but they are expensive (typically $300 to $3,000) and work only on drives with recoverable hardware.

Frequently Asked Questions

Can I recover a file I deleted weeks ago?

It depends on how much you have used your computer since the deletion. If the space has not been overwritten, recovery software may still find it. If you have installed programs, downloaded files, or run system updates, the file is likely overwritten and unrecoverable. Cloud-stored files are more likely to be recoverable because cloud services keep deleted files for 30 to 93 days regardless of local activity.

Why should I save recovered files to a different drive?

Saving to the same drive where you are recovering from risks overwriting other deleted files you might want to recover later. It also uses up space on that drive, potentially destroying more recoverable data. Always save to an external drive, USB stick, or a different internal partition.

Does recovery software work on Macs?

Yes. EaseUS Data Recovery Wizard and Disk Drill both support Mac. Recuva is Windows-only. The process is the same: download, scan the drive, preview files, and recover to an external location. Mac users can also check Time Machine backups if they have been using that feature.

What if my file was on a work computer or shared network drive?

Network drives and shared folders often have their own backup systems managed by your IT department. Contact your IT support or help desk and describe when you deleted the file — they may be able to restore it from a network backup without you needing recovery software. Do not run recovery software on a work computer without permission.

Is it safe to use free recovery software?

Recuva, EaseUS (free version), and Disk Drill (free version) are all legitimate tools from established companies. Download only from their official websites, not from third-party download sites. Free versions have limits on file size or quantity recovered, but they are safe to use. Avoid unknown recovery tools from unfamiliar sources.