The basic way to delete a file
To delete a file, right-click on it and select Delete from the menu that appears. The file moves to your Recycle Bin (on Windows) or Trash (on Mac), where it stays until you empty that folder. This is the safest method because you can still recover the file if you change your mind.
You can also select a file and press the Delete key on your keyboard — it does the same thing. If you have multiple files to delete, click the first one, hold Ctrl (on Windows) or Command (on Mac), and click each additional file you want to remove. Then right-click and delete them all at once.
The file does not disappear from your computer immediately. It sits in the Recycle Bin or Trash folder until you empty it. As long as it is there, you can restore it by opening that folder, right-clicking the file, and selecting Restore or Put Back.
Key Takeaways
- Right-click any file and select Delete to move it to your Recycle Bin or Trash folder instead of removing it permanently.
- Files in the Recycle Bin or Trash can be restored at any time until you empty that folder.
- Emptying the Recycle Bin or Trash permanently removes files from your computer, so double-check before you do it.
- Shift+Delete (Windows) or Command+Delete (Mac) skips the Recycle Bin and deletes the file immediately, so use this only when you are certain.
Permanently deleting a file
If you want to delete a file without sending it to the Recycle Bin first, select the file and press Shift+Delete (on Windows) or Command+Delete (on Mac). Your computer will ask you to confirm. Once you confirm, the file is gone and cannot be restored through normal means.
Use this method only when you are absolutely sure you want to remove the file. There is no undo button after you confirm — the file does not go to the Recycle Bin as a safety net. Most of the time, using the regular Delete key and then emptying the Recycle Bin later is the safer approach.
Emptying the Recycle Bin or Trash
When you are ready to permanently remove deleted files from your computer, you need to empty the Recycle Bin (Windows) or Trash (Mac). On Windows, right-click the Recycle Bin icon on your desktop and select Empty Recycle Bin. On Mac, click the Trash icon in your dock, then go to Empty Trash in the menu bar at the top of the screen.
Before you empty the Recycle Bin or Trash, take a moment to look through it. Once you empty it, those files are permanently deleted and recovery becomes much harder. If you see a file you did not mean to delete, right-click it and restore it before you proceed.
Deleting files from external drives and USB sticks
Deleting files from an external hard drive or USB stick works the same way as deleting from your computer — right-click and select Delete. The file goes into the Recycle Bin or Trash on your main computer, not on the external device itself. This means you can still restore it from your Recycle Bin even though it came from an external drive.
If you want to permanently delete a file from an external drive without it going to your Recycle Bin, use Shift+Delete (Windows) or Command+Delete (Mac) just as you would for files on your main computer. The file will be removed from the external drive immediately.
What happens when you delete a file
When you delete a file, your computer does not actually erase the data right away. Instead, it marks that space as available for new files to use. The old file is hidden from view, but the data is still physically on your hard drive until your computer writes new information over that spot. This is why deleted files can sometimes be recovered with special software, even after you empty the Recycle Bin.
If you are selling your computer or giving it away and want to make sure deleted files cannot be recovered, you need to use a secure deletion tool or wipe your hard drive completely. Standard deletion is not secure enough for sensitive information. Your operating system may have a built-in secure deletion option, or you can look for third-party tools designed for this purpose.
Deleting folders instead of individual files
You can delete an entire folder the same way you delete a single file — right-click it and select Delete. When you delete a folder, everything inside it (all files and subfolders) gets deleted along with it. The whole folder goes to your Recycle Bin, so you can still restore the entire folder and its contents if you change your mind.
Be careful when deleting folders because it is easy to accidentally remove files you still need. If you are not sure whether a folder contains something important, open it first and look through the contents. You can also move a folder to a different location as a backup before you delete it, just in case.
Troubleshooting when you cannot delete a file
Sometimes you will try to delete a file and get an error message saying the file is in use or cannot be deleted. This usually means the file is open in a program. Close the program first, then try deleting the file again. If the file is a system file or is protected by your operating system, you may not be able to delete it without special permission.
If you still cannot delete the file after closing all programs, restart your computer and try again. A restart clears out temporary locks on files. If the problem continues, the file may be corrupted or protected. In that case, you may need to contact technical support or look for instructions specific to your operating system.
Frequently Asked Questions
Can I recover a file after I empty the Recycle Bin?
Recovery becomes much harder after you empty the Recycle Bin, but it may still be possible with data recovery software. The longer you wait and the more you use your computer, the less likely recovery becomes. If you accidentally emptied the Recycle Bin and need a file back, stop using your computer and look into recovery options right away.
What is the difference between Delete and Shift+Delete?
Delete moves the file to your Recycle Bin or Trash, where you can restore it later. Shift+Delete skips the Recycle Bin entirely and removes the file immediately. Use Shift+Delete only when you are certain you want to permanently remove the file.
Does deleting a file free up space on my hard drive?
Not immediately. When you delete a file, your computer marks that space as available but does not erase the data right away. The space becomes truly available once your computer writes new files over that location. From a practical standpoint, yes — deleted files do free up space that your computer can use for new files.
Can I delete files from my Downloads folder without losing them?
Yes. You can move files from your Downloads folder to another location (like Documents or a folder you create) before you delete them. This way you keep a copy somewhere safe. Many people delete their Downloads folder regularly to free up space, so moving important files first is a good habit.
What should I do if I accidentally deleted an important file?
Open your Recycle Bin (Windows) or Trash (Mac) immediately and look for the file. If it is there, right-click it and restore it. If you already emptied the Recycle Bin, stop using your computer and consider using data recovery software. The sooner you act, the better your chances of getting the file back.