Deleting files removes them from your storage, but the process differs slightly depending on whether you use Windows, Mac, or Linux
When you delete a file or folder, your operating system moves it to a temporary holding area — usually called the Recycle Bin on Windows or the Trash on Mac — rather than erasing it when ready from your hard drive. This gives you a window to change your mind. Once you empty that holding area, the file becomes much harder to recover, though specialized software can sometimes retrieve it. Understanding how deletion works on your specific system helps you avoid losing files by accident and frees up storage space when you actually want to.
The steps below cover the most common scenarios: deleting single files, deleting folders with contents inside, and permanently removing files so they cannot be recovered. If you are working on a shared computer or a work device, check with your IT department or manager before deleting anything — some systems have restrictions on what you can remove.
Key Takeaways
- On Windows, right-click a file or folder and select Delete to send it to the Recycle Bin, where it stays until you empty the bin or the bin reaches its storage limit.
- On Mac, drag files to the Trash or select them and press Command+Delete, then empty the Trash from the Dock to permanently remove them.
- Deleting a folder removes the entire folder and everything inside it at once, so double-check the contents before you confirm.
- Once you empty the Recycle Bin or Trash, recovery becomes difficult without specialized software, so take a moment to verify you no longer need the files.
- If you delete files by accident, restore them from the Recycle Bin or Trash before you empty it — this is the fastest and most reliable recovery method.
Deleting files on Windows
On Windows, the simplest way to delete a file is to right-click it and select Delete from the menu that appears. The file moves to the Recycle Bin, a folder that holds deleted items until you choose to remove them permanently. You can also select a file and press the Delete key on your keyboard — the result is the same.
If you delete a file by accident, open the Recycle Bin (usually an icon on your desktop or accessible from File Explorer), right-click the file you want to keep, and select Restore. The file returns to its original location. The Recycle Bin holds deleted files until it reaches a certain size limit — typically 10 percent of your hard drive — at which point the oldest deleted files are automatically removed to make room for new ones.
To permanently delete files and free up storage space, right-click the Recycle Bin icon and select Empty Recycle Bin. Windows will ask you to confirm. Once you confirm, the files are gone from the Recycle Bin, though they may still be recoverable with specialized data recovery software if you act quickly.
Deleting files on Mac
On Mac, you can delete a file by dragging it to the Trash (usually visible in the Dock at the bottom of your screen) or by selecting the file and pressing Command+Delete. The file moves to the Trash, where it stays until you empty it. You can also right-click a file and select Move to Trash from the menu.
To restore a file you deleted by accident, click the Trash icon in the Dock, find the file, right-click it, and select Put Back. The file returns to the folder it came from. If you cannot find the file in the Trash, it may have already been permanently deleted.
To permanently delete files and free up storage, click the Trash icon in the Dock, then click Empty in the top right corner of the window. Mac will ask you to confirm. Once you confirm, the files are removed from the Trash. Like Windows, Mac does not when ready erase the data from your hard drive, so recovery software may still retrieve files shortly after deletion.
Deleting folders and everything inside them
When you delete a folder, everything inside it — subfolders, files, documents, images, all of it — is deleted at the same time. Windows and Mac do not ask you to confirm that you want to delete the contents; they straightforward move the entire folder to the Recycle Bin or Trash. This means you should always check what is inside a folder before you delete it, especially if you have not opened it in a while.
To see what is in a folder before you delete it, double-click it to open it and look at the list of files and subfolders. If you are unsure whether you need something, move the folder to a temporary location (like a "To Review" folder on your desktop) rather than deleting it right away. Once you are confident you no longer need anything inside, you can delete the folder.
Permanently deleting files without recovery options
If you want to delete files in a way that makes recovery much harder, some operating systems offer a find delete option. On Windows 11, you can right-click a file and select Delete, then permanently delete it from the Recycle Bin using the steps above. For more control, third-party tools like Eraser or CCleaner can overwrite deleted files with random data, making them nearly impossible to recover — though this process takes longer and uses more of your computer's resources.
On Mac, there is no built-in find delete option in recent versions, but you can use third-party applications like Permanent Eraser or find Empty Trash. These tools overwrite the space where the file was stored, making recovery much more difficult. For most people, straightforward emptying the Trash is sufficient — find deletion is mainly useful if you are disposing of a computer or deleting files containing sensitive personal information.
Keep in mind that find deletion does not work reliably on solid-state drives (SSDs), which are common in newer computers. SSDs handle data differently than older hard drives, and overwriting data on an SSD does not may provide the data cannot be recovered. If you are selling or donating a computer with an SSD, the safest approach is to encrypt your hard drive before you use it, then wipe the entire drive using your operating system's built-in tools.
What happens when your storage is full
If your hard drive or storage device is nearly full, deleting files is one of the fastest ways to free up space. When you delete a file to the Recycle Bin or Trash, it still takes up storage space until you empty the bin or trash. To actually free up space, you must empty the Recycle Bin on Windows or the Trash on Mac using the steps described above.
Before you delete files to make room, consider moving large files you do not use often to an external hard drive or cloud storage instead. This keeps the files safe while freeing up space on your main computer. Photos, videos, and old project folders are good candidates for moving rather than deleting, since they take up a lot of space and you may want them later.
Recovering deleted files if you change your mind
If you deleted a file and the Recycle Bin or Trash is still open, restoring it is straightforward — just right-click the file and select Restore (Windows) or Put Back (Mac). The file returns to its original location when ready.
If you already emptied the Recycle Bin or Trash, recovery becomes much harder. Specialized data recovery software like Recuva (Windows) or Data Rescue (Mac) can sometimes retrieve recently deleted files, but success depends on how long ago the file was deleted and whether new data has been written to the same storage space. These tools work best if you stop using your computer right after you realize the file is gone — the more you use your computer, the more likely new data will overwrite the deleted file's location.
Recovery software is not may provide to work, so it should not be your main strategy for protecting important files. Instead, keep backups of anything you cannot afford to lose. Most computers can be set up to automatically back up files to an external drive or cloud service, which is far more reliable than trying to recover deleted files after the fact.
Frequently Asked Questions
Can I delete a file that is currently open or in use?
On Windows, you usually cannot delete a file that is open in another program — the system will tell you the file is in use. Close the program first, then delete the file. On Mac, you can sometimes delete a file even if it is open, but the program using it may crash or behave unexpectedly. Close the program before deleting to avoid problems.
What is the difference between delete and move to trash?
There is no difference — both terms describe the same action. When you delete a file, it moves to the Recycle Bin (Windows) or Trash (Mac). The file is not permanently gone until you empty the bin or trash. Some people use "move to trash" to emphasize that the file is still recoverable at this stage.
If I delete a file from an external hard drive, where does it go?
On Windows, files deleted from an external drive go to the Recycle Bin on your main hard drive, not to a separate bin on the external drive. On Mac, they go to the Trash. This means you can still restore them even after you disconnect the external drive, as long as you do it before you empty the bin or trash.
Does deleting a file from the cloud (like OneDrive or Google Drive) work the same way?
Cloud storage services like OneDrive, Google Drive, and Dropbox have their own trash or bin system separate from your computer's Recycle Bin or Trash. When you delete a file from a cloud service, it goes to that service's trash and stays there for a set period (usually 30 days) before being permanently removed. Check the cloud service's website or app to restore files from its trash.
Can I schedule files to delete automatically?
Windows and Mac do not have built-in scheduling for automatic file deletion, but you can use third-party tools or scripts to delete files on a schedule. For most people, manually deleting files when you no longer need them is simpler and safer — it gives you a chance to double-check before anything is removed.