Where deleted files actually go

When you delete a file on Windows, Mac, or Linux, it does not vanish immediately. The operating system removes the file from the folder view and marks that space on your hard drive as available to overwrite, but the actual data often remains intact until something new is written over it. This window — sometimes hours, sometimes weeks — is when recovery is possible.

The speed of recovery depends on what kind of drive you have. On a traditional hard drive (HDD), deleted files sit in recoverable space longer because data writes more slowly. On a solid-state drive (SSD), the situation is different: SSDs use a process called TRIM that actively erases deleted data to maintain performance, which shrinks your recovery window significantly. If you deleted the file recently and have not filled your drive with new data since, recovery is usually straightforward.

The first and most important step after realizing a file is gone: stop using the device. Every program you open, every file you save, every browser tab you load writes new data to your drive and risks overwriting what you are trying to recover.

Key Takeaways

  • Deleted files remain on your drive until new data overwrites them, so stop using the device immediately after discovering the loss.
  • Windows has a built-in Recycle Bin that holds deleted files for a set period; Mac has Trash; both are the fastest place to look first.
  • If the Recycle Bin or Trash is empty, recovery software can scan your drive for file fragments, but success depends on how much new data has been written since deletion.
  • Files deleted from external drives, USB sticks, or SD cards are often easier to recover than files deleted from your main system drive.
  • Cloud storage services like OneDrive, Google Drive, and iCloud keep deleted files in a trash folder for 30 to 90 days before permanent removal.

Check your Recycle Bin or Trash first

On Windows, deleted files go to the Recycle Bin by default. Look for the Recycle Bin icon on your desktop — it usually looks like a trash can. Double-click it to open. If you see the file you deleted, right-click it and select "Restore." The file returns to its original location.

On Mac, deleted files go to Trash. Click the Trash icon in the Dock (bottom right of your screen) to open it. Find the file, then drag it back to the desktop or to the folder where you want it, or right-click and select "Put Back" to restore it to where it was before deletion.

Files stay in Recycle Bin or Trash until you empty it manually, or until your system automatically clears it after a set period — usually 30 days on Windows and 30 days on Mac, though this varies by system settings. If you emptied the Recycle Bin or Trash already, move to the next section.

Recover files from cloud storage

If the file was stored in OneDrive, Google Drive, Dropbox, iCloud, or another cloud service, the file may still be in that service's trash or recycle folder. Open the cloud service in your web browser and look for a Trash, Recycle Bin, or Recently Deleted folder — the exact name depends on the service.

OneDrive keeps deleted files for 93 days. Google Drive keeps them for 30 days. Dropbox keeps them for 30 days unless you have a paid plan with extended recovery. iCloud keeps deleted files for 30 days. Open the service, find the trash section, locate your file, and restore it. This is much faster and more reliable than recovery software because the file has not actually been erased from the service's servers.

If the file was synced to your computer and you deleted it from your computer, it may still exist in the cloud version. Check the cloud service first before attempting recovery software on your local drive.

Use recovery software on Windows

If the Recycle Bin is empty and the file was not in cloud storage, recovery software can scan your drive for deleted file fragments. On Windows, common options include Recuva (free), EaseUS Data Recovery Wizard (free version available), and MiniTool Power Data Recovery (free version available).

Download the recovery software on a different computer or device if possible, then transfer it to a USB drive. Install it on the computer where the file was deleted, but do not install it to the same drive you are trying to recover from — install it to a different drive or to the USB stick itself. Open the software and select the drive where the file was deleted. Start a scan. The software will search for file fragments and show you what it finds.

Recovery success depends on how much new data has been written since deletion. If you deleted the file yesterday and have not used the computer much since, recovery rates are usually high. If weeks have passed and you have saved many new files, recovery becomes less certain. When the scan finishes, preview the files the software found, select the ones you want, and save them to a different drive — never save them back to the drive you are recovering from.

Recover files from external drives and USB sticks

Files deleted from external hard drives, USB sticks, and SD cards are often easier to recover than files deleted from your main system drive. This is because external drives are used less frequently, so the deleted data sits undisturbed longer.

Plug the external drive into your computer. Download recovery software (Recuva, EaseUS, or MiniTool) onto your main drive, then run it and select the external drive as the target. Let it scan. The software will usually find more recoverable files on an external drive than on your main system drive because less new data has been written over the deleted files.

Save recovered files to your main drive or to a different external drive, not back to the same external drive you are recovering from. Once you have recovered what you need, you can reformat the external drive to clear the old deleted data and use it again.

What to do if recovery software finds nothing

If recovery software scans your drive and finds no trace of the file, one of three things has happened: the file was overwritten by new data, the drive is encrypted and the software cannot read it, or the drive has a hardware problem.

If the drive is encrypted (common on newer Macs and some Windows systems), recovery software cannot see the deleted files. You would need to know the encryption password or use specialized tools designed for encrypted drives, which is beyond what free software can do.

If the drive has a hardware problem — clicking sounds, not recognized by the computer, or very slow performance — recovery software will not help. In this case, a data recovery service may be able to help, but these services are expensive and work only if the drive's physical components can be repaired or accessed. For most people, this is not a practical option.

Prevent future data loss

The best solution to deleted files is not recovery — it is backup. Set up automatic backups so that when you delete something by accident, you can restore it from a backup instead of relying on recovery software.

On Windows, use File History (built into Windows) or backup to an external drive. On Mac, use Time Machine (built into macOS) or backup to an external drive. Both create hourly snapshots of your files. If you delete something, you can browse the backup and restore an older version.

For important files, also use cloud storage. OneDrive, Google Drive, Dropbox, and iCloud all keep version history, so you can recover older versions of files you have edited or deleted. Set these services to sync your important folders automatically.

Frequently Asked Questions

Can I recover a file I deleted months ago?

Probably not, unless it was on an external drive or in cloud storage. On your main system drive, months of new files, program updates, and system activity will have overwritten most deleted data. Cloud services keep deleted files for 30 to 93 days, so if it has been longer than that, it is gone from the cloud too.

Does recovery software work on Macs?

Yes. Disk Drill, Recuva, and EaseUS all have Mac versions. The process is the same: download on a different drive, scan the drive where the file was deleted, and save recovered files to a different location. Mac's built-in Time Machine backup is usually faster and more reliable than recovery software if you have it enabled.

What if the file was on my phone or tablet?

Recovery is much harder on phones and tablets because the operating system actively erases deleted data. If the phone is backed up to iCloud (iPhone) or Google Drive (Android), check those services first. Otherwise, recovery software designed for phones exists but is less reliable than desktop recovery. Prevent future loss by enabling automatic cloud backup on your phone.

Is it safe to use free recovery software?

Yes, as long as you download from the official website. Recuva, EaseUS, and MiniTool are legitimate tools. Avoid downloading recovery software from third-party sites or clicking ads, as these may contain malware. Stick to the official websites of known software makers.

Can I recover a file if I formatted the drive?

Yes, formatting does not erase data — it only erases the file system that tells your computer where files are located. Recovery software can still scan a formatted drive and find the deleted files. Stop using the drive immediately after formatting and run recovery software as soon as possible.