What deleting a file actually does
When you delete a file or folder, your computer removes it from the place you can see it, but the data doesn't vanish immediately. On Windows, deleted files go to the Recycle Bin. On Mac, they go to Trash. Both act as a holding area — you can restore anything from there until you empty the bin or trash permanently. Only when you empty that holding area does the computer mark the space as available to overwrite.
This matters because deleted files can sometimes be recovered with special software, even after you empty the bin. If you're deleting something sensitive — financial documents, passwords, personal photos — you may want to use secure deletion instead, which overwrites the data so recovery becomes much harder.
Key Takeaways
- Deleting a file on Windows sends it to Recycle Bin; on Mac it goes to Trash, and you can restore it from there until you empty the container.
- Right-click on a file or folder and select Delete (Windows) or Move to Trash (Mac) to remove it from its current location.
- Emptying Recycle Bin or Trash permanently removes files from your view, but the data can still be recovered with specialized software.
- For sensitive documents, use secure deletion tools like Cipher on Windows or third-party apps on Mac to overwrite data so it cannot be recovered.
- Shift+Delete on Windows bypasses Recycle Bin entirely and deletes the file directly, though it can still be recovered with recovery software.
Deleting files on Windows
The standard way to delete a file on Windows is to right-click it and select Delete from the menu. The file moves to Recycle Bin, which you can access from your desktop or by opening File Explorer and clicking Recycle Bin in the left sidebar. If you change your mind, right-click the file in Recycle Bin and select Restore.
If you want to skip Recycle Bin entirely and delete a file directly, hold Shift while pressing Delete. This removes the file from your view right away, but it can still be recovered with data recovery software. To permanently empty Recycle Bin, right-click it and select Empty Recycle Bin. Windows will ask you to confirm.
For folders, the process is identical — right-click, select Delete, and the entire folder and everything inside it go to Recycle Bin. You can restore the whole folder at once if you change your mind.
Deleting files on Mac
On Mac, drag a file to Trash (the icon in your dock that looks like a trash can), or right-click the file and select Move to Trash. The file disappears from its location and sits in Trash until you empty it. To restore a file, open Trash, right-click the file, and select Put Back.
To permanently remove files from Trash, open Trash and click Empty in the top right corner. Mac will ask you to confirm. Once you confirm, the files are removed from your view, though recovery software can still retrieve them.
You can also delete a file by selecting it and pressing Command+Delete, which moves it to Trash immediately.
Secure deletion for sensitive files
Standard deletion leaves data on your hard drive in a way that recovery software can read. If you're deleting financial records, tax documents, medical information, or anything with passwords, secure deletion overwrites the space multiple times so recovery becomes impractical.
On Windows, use the built-in Cipher tool to securely wipe free space on your drive. Open Command Prompt as administrator, type cipher /w:C: (replacing C with your drive letter), and press Enter. This overwrites all deleted data on that drive. The process can take hours depending on drive size.
On Mac, there is no built-in secure deletion tool for individual files. Third-party apps like Permanent Eraser or Secure Empty Trash can overwrite files before deletion. Some are paid; some are free. Download only from the Mac App Store or the developer's official website to avoid malware.
Deleting files from cloud storage
If your files are stored in cloud services like OneDrive, Google Drive, or iCloud, deleting them works differently. Deleting a file from your computer's sync folder removes it from all your devices and from the cloud. Most cloud services move deleted files to a trash or bin folder first, where they sit for 30 days before permanent deletion. You can restore them during that window.
Check your cloud service's trash or bin folder before assuming a file is gone. On OneDrive, deleted files go to the Recycle Bin in your OneDrive folder online. On Google Drive, they go to Trash. On iCloud, deleted files appear in Recently Deleted. Each service has its own timeline for permanent deletion — usually 30 days — so you have time to restore if needed.
What happens when you delete a folder
Deleting a folder removes the folder and everything inside it — files, subfolders, and all their contents. The entire structure goes to Recycle Bin (Windows) or Trash (Mac) as one unit. If you restore the folder, everything inside it restores with it.
Be careful when deleting large folders, because you may not remember exactly what was inside. If you're unsure, move the folder to a separate location first instead of deleting it. That way you can check what's in it before you decide to delete permanently.
Recovering deleted files
If you deleted a file by accident and it's still in Recycle Bin or Trash, restore it immediately — the longer you wait, the more likely the space will be overwritten. Right-click the file and select Restore (Windows) or Put Back (Mac).
If you already emptied Recycle Bin or Trash, data recovery software may still retrieve the file. Programs like Recuva (Windows) or Data Rescue (Mac) scan your drive for deleted files and attempt to recover them. Success depends on how much of the drive has been used since deletion. Download recovery software from the official website only, and run it from an external drive if possible to avoid overwriting the data you're trying to recover.
Frequently Asked Questions
Can I recover a file after I empty Recycle Bin or Trash?
Maybe. Data recovery software can sometimes retrieve files after you empty the bin, especially if you haven't used your computer much since deletion. The sooner you try, the better your chances. Download recovery software from the official website and run it immediately if you need to recover something important.
What's the difference between Delete and Shift+Delete on Windows?
Delete sends the file to Recycle Bin, where you can restore it. Shift+Delete removes it from view immediately without going to Recycle Bin. Both can be recovered with data recovery software, but Shift+Delete is faster if you're sure you want the file gone.
Does deleting a file from my computer also delete it from cloud storage?
If the file is synced to cloud storage like OneDrive or Google Drive, deleting it from your computer removes it from the cloud too. The file goes to the cloud service's trash folder first, where it usually sits for 30 days before permanent deletion. You can restore it during that window from the cloud service's website.
Is secure deletion necessary for every file I delete?
No. Secure deletion is mainly useful for sensitive documents like financial records, tax returns, or anything with passwords. For everyday files like photos or documents you don't mind someone recovering, standard deletion is fine. Secure deletion takes much longer and wears out your drive faster, so use it only when the content is genuinely sensitive.
What if I delete a file and my computer runs out of space?
Deleted files still take up space until you empty Recycle Bin or Trash. Emptying the bin frees up that space. If you need space urgently, empty Recycle Bin or Trash first before you delete anything else. If you're still short on space, move large files to an external drive or cloud storage instead of deleting them.