The three ways to delete a file on Windows
You can delete a file on Windows in three ways: right-click and select Delete, press the Delete key after selecting the file, or drag it to the Recycle Bin. All three methods move the file to your Recycle Bin first, so you can recover it later if you change your mind. To permanently erase a file so it cannot be recovered, you must empty the Recycle Bin after deleting it.
The method you choose depends on what you are doing at the moment. If you are browsing files in File Explorer, right-clicking is fastest. If you have already selected a file, the Delete key is quickest. If you want to see the file move, dragging to the Recycle Bin works but takes longer.
Key Takeaways
- Deleting a file sends it to the Recycle Bin, where it stays until you empty the bin or it fills up.
- You can recover any file from the Recycle Bin by opening it, right-clicking the file, and selecting Restore.
- To permanently erase a file so it cannot be recovered, you must empty the Recycle Bin after deleting it.
- Shift+Delete skips the Recycle Bin and permanently deletes a file immediately, so use it only when you are certain.
- Files deleted from an external drive or USB stick may not go to the Recycle Bin and may be harder to recover.
Delete a file using right-click
Open File Explorer and navigate to the folder containing the file you want to delete. Right-click on the file name or icon. A menu will appear with several options. Click the word Delete near the bottom of the menu. The file will disappear from the folder and move to your Recycle Bin.
If you do not see a Delete option, the file may be locked by another program. Close any program that might be using the file — for example, if it is a Word document, close Microsoft Word — and try again. Some files in system folders cannot be deleted this way; Windows will show an error message if you try.
Delete a file using the Delete key
Click on the file once to select it. The file name will highlight or show a border around it. Press the Delete key on your keyboard. A small window may appear asking you to confirm; if it does, click Yes. The file will move to your Recycle Bin.
You can select multiple files at once and delete them together. Click the first file, then hold Ctrl and click each additional file you want to delete. All selected files will highlight. Press Delete, and all of them will move to the Recycle Bin in one action.
Recover a deleted file from the Recycle Bin
If you delete a file by mistake, you can get it back as long as you have not emptied the Recycle Bin. Double-click the Recycle Bin icon on your desktop — it looks like a trash can. A window will open showing all the files you have deleted. Find the file you want to recover, right-click it, and select Restore. The file will return to the folder it came from.
If you cannot find the file in the Recycle Bin, it may have been deleted before the bin was last emptied, or it may have been deleted from an external drive. Files deleted from USB sticks or external hard drives often do not go to the Recycle Bin and cannot be recovered through this method.
Permanently delete a file so it cannot be recovered
Deleting a file to the Recycle Bin does not erase it from your hard drive — it only hides it. To permanently erase a file, you must empty the Recycle Bin. Right-click the Recycle Bin icon on your desktop and select Empty Recycle Bin. Windows will ask you to confirm. Click Yes, and all files in the bin will be permanently erased.
If you want to permanently delete a single file without moving it to the Recycle Bin first, select the file and press Shift+Delete instead of just Delete. Windows will ask you to confirm that you want to permanently delete it. Click Yes, and the file will be erased immediately. Use Shift+Delete only when you are absolutely certain you will not need the file again.
Delete files from folders you do not own
Some folders on your computer are protected by Windows, and you may not have permission to delete files from them. If you try to delete a file and see a message saying "You do not have permission" or "Access denied," the folder is protected. You can ask Windows for permission, but this requires administrator access to your computer.
Right-click the file and select Delete. If an error appears, right-click the file again and look for an option that says Run as administrator or Take ownership. If neither option appears, you will need to log in with an administrator account or ask the person who manages your computer for help. Do not try to force delete system files — these are needed for Windows to run, and deleting them can cause serious problems.
What happens when your Recycle Bin is full
Your Recycle Bin has a size limit, usually around 10 percent of your hard drive. When you delete files, they stay in the Recycle Bin until either you empty it manually or it reaches this limit. Once the bin is full, the oldest deleted files are automatically and permanently erased to make room for new ones. You cannot recover files that were automatically erased this way.
If you delete a very large file, it may take up most of your Recycle Bin space. You can check how much space the bin is using by right-clicking the Recycle Bin icon, selecting Properties, and looking at the size shown. If the bin is nearly full and you want to keep a recently deleted file, recover it immediately by opening the bin and clicking Restore.
Frequently Asked Questions
Can I undo a delete if I already emptied the Recycle Bin?
No. Once you empty the Recycle Bin, the files are permanently erased from Windows' perspective. You cannot undo this action through the normal Delete or Undo commands. Some data recovery software claims to recover permanently deleted files, but success is not certain and depends on whether the hard drive has written new data over the deleted file's location.
What is the difference between Delete and Shift+Delete?
Delete moves a file to the Recycle Bin, where you can recover it. Shift+Delete permanently erases the file immediately without using the Recycle Bin. Use Delete for files you might want back, and Shift+Delete only when you are certain you will never need the file again.
Why can't I delete a file that is in use?
Windows prevents you from deleting a file while a program is actively using it. Close the program that has the file open — for example, close Word if the file is a document, or close your browser if it is a downloaded file. Then try deleting it again. If you still cannot delete it, restart your computer and try once more.
Do deleted files take up space on my hard drive?
Files in the Recycle Bin still take up hard drive space. To free up that space, you must empty the Recycle Bin. Once you empty it, the space becomes available for new files. If your hard drive is running low on space, emptying the Recycle Bin is one of the quickest ways to recover some of it.
What happens if I delete a file from a USB stick or external hard drive?
Files deleted from external drives usually do not go to the Recycle Bin. Instead, they are often permanently erased immediately. Before deleting files from a USB stick or external drive, make sure you have a backup copy somewhere else, because recovery will be difficult or impossible.