Where your computer stores files and how to remove them

When you delete a file on Windows or Mac, it moves to a holding area — the Recycle Bin on Windows or the Trash on Mac — rather than disappearing when ready. The file stays there until you empty that bin, which is when the space it took up becomes available again. Until you do that final step, the file is still using storage space on your hard drive or solid-state drive.

Understanding this two-step process matters because it means you can recover a file you deleted by mistake, as long as you haven't emptied the bin yet. Once you empty it, recovery becomes much harder and usually requires special software.

Key Takeaways

  • Deleting a file sends it to the Recycle Bin (Windows) or Trash (Mac), but it still takes up storage space until you empty that bin.
  • You can recover files from the Recycle Bin or Trash as long as you haven't emptied it yet.
  • Permanently deleting files requires a second step: emptying the bin or trash folder.
  • Large files like videos and old software installations free up the most storage space when deleted.
  • Built-in storage cleanup tools on both Windows and Mac can find and remove files automatically.

How to delete files on Windows

Right-click any file or folder and select Delete from the menu. The file moves to the Recycle Bin. You can also select a file and press the Delete key on your keyboard — the result is the same.

To permanently delete the file and free up the space it uses, open the Recycle Bin (look for its icon on your desktop or search for "Recycle Bin" in the Windows search bar). Right-click the file you want to remove permanently and select Delete, or select multiple files by holding Ctrl and clicking each one, then right-click and delete them all at once. You can also right-click inside the empty space of the Recycle Bin and select Empty Recycle Bin to delete everything in it at once.

If you want to skip the Recycle Bin entirely and delete a file permanently in one step, select the file and press Shift + Delete instead of just Delete. This removes it when ready without sending it to the Recycle Bin first.

How to delete files on Mac

Click a file once to select it, then press Command + Delete, or right-click the file and select Move to Trash. The file moves to the Trash folder. To find it later, click the Trash icon in your Dock (usually at the bottom right of the screen).

To permanently delete files and free up storage space, open the Trash and right-click any file, then select Delete when ready. You can select multiple files by holding Command and clicking each one before right-clicking. To empty all trash at once, right-click inside the empty space of the Trash window and select Empty Trash.

Unlike Windows, Mac does not offer a keyboard shortcut to skip Trash entirely. Every deleted file goes to Trash first, and you must manually empty it to free up space.

Finding large files that use the most storage space

Before you start deleting randomly, identify which files are actually taking up room. On Windows, open Settings, go to System, then Storage. Click Advanced storage settings and then Storage usage. Windows will show you which folders and file types are using the most space — usually videos, photos, and old software installations.

On Mac, click the Apple menu, select About This Mac, then click the Storage tab. A colored bar shows what is using space. Click Manage to see a breakdown by category. Look for old downloads, duplicate files, and large video or photo libraries.

Video files, old game installations, and backup folders often hold gigabytes of space. Deleting even one or two of these can free up far more room than removing hundreds of small files.

Using built-in cleanup tools to remove files automatically

Windows includes a tool called Storage Sense that can delete temporary files and old downloads without you having to find them manually. Open Settings, go to System, then Storage, and toggle on Storage Sense. You can set it to run automatically or click Clean now to run it when ready. It will remove temporary files, the Recycle Bin contents, and downloads older than a certain number of days (you choose how many).

Mac has a similar feature called Optimize Storage in the Storage tab of About This Mac. You can enable Empty Trash Automatically to have Mac delete files from Trash after 30 days without you having to do it manually. You can also enable Reduce Clutter to remove old files you haven't opened in a long time, though Mac will keep them in iCloud if you have that turned on.

These tools are safe to use because they target temporary files and old downloads, not your documents or photos. They do not delete anything you actively use.

What to do before deleting large folders

Before you delete a folder that contains many files — like an old project folder or a software installation — take a moment to check what is inside. Double-click the folder and scan the contents. Look for any files you might need later, especially documents, photos, or settings files.

If you are unsure whether you need something, move it to a separate folder on your desktop or in your Documents first, rather than deleting it outright. That way you can test whether anything breaks or whether you actually miss it before you permanently delete it. After a week or two, if you have not needed those files, you can delete them with confidence.

Software installations are usually safe to delete once you have uninstalled the program through your system settings. On Windows, go to Settings > Apps > Apps & features, find the program, and click Uninstall. On Mac, drag the process from the Applications folder to Trash. After uninstalling, the leftover installation files can be deleted.

Recovering files you deleted by mistake

If you deleted a file and have not yet emptied the Recycle Bin or Trash, you can get it back. Open the Recycle Bin (Windows) or Trash (Mac), find the file, right-click it, and select Restore (Windows) or Put Back (Mac). The file returns to its original location.

If you have already emptied the bin or trash, recovery becomes much harder. Third-party recovery software exists, but it is not may provide to work, especially if you have written new data to your drive since the deletion. The best approach is to avoid this situation by double-checking the Recycle Bin or Trash before emptying it, particularly after deleting large folders.

Frequently Asked Questions

Does deleting a file from my desktop actually delete it from my computer?

No. Deleting a file from your desktop sends it to the Recycle Bin (Windows) or Trash (Mac), where it still takes up storage space. You must empty the bin or trash as a second step to actually free up that space. Until you do, the file can be recovered.

How much storage space will I free up by deleting files?

The amount depends on the file size. A single video file might be several gigabytes, while a text document might be a few kilobytes. Check the file properties (right-click and select Properties on Windows, or press Command + I on Mac) to see the exact size before you delete it.

Is it safe to use Storage Sense or Optimize Storage?

Yes. These tools target temporary files, caches, and old downloads — not your documents, photos, or active programs. They are designed to be safe. You can always adjust the settings to be more conservative, such as increasing the number of days before old downloads are deleted.

What if I delete a file and then my computer stops working properly?

If you deleted a system file or a file that a program needs, your computer might behave strangely. Restore the file from the Recycle Bin or Trash when ready if you suspect this. If you have already emptied the bin, restart your computer in Safe Mode and see if the problem persists. If a program is broken, uninstall and reinstall it rather than trying to recover individual files.

Can I delete files from an external hard drive the same way?

Yes. Deleting files from an external drive works the same way — they go to the Recycle Bin or Trash. However, some external drives may have different behavior depending on how they are formatted. If you are unsure, check the drive's manual or right-click the drive and look for options specific to that device.