The fastest way to delete a file
Right-click the file you want to delete and select Delete from the menu that appears. Windows moves the file to the Recycle Bin, where it stays until you empty the bin or the bin reaches its storage limit. The file is not permanently gone at this point — you can still recover it if you change your mind.
If you do not see a Delete option in the menu, make sure you right-clicked directly on the file itself, not on empty space next to it. The right-click menu changes depending on what you clicked.
You can also select a file and press the Delete key on your keyboard. This does the same thing as right-clicking and choosing Delete — the file goes to the Recycle Bin.
Key Takeaways
- Right-click any file and select Delete, or press the Delete key, to send it to the Recycle Bin.
- Files in the Recycle Bin can be recovered until you empty the bin or it runs out of space.
- Permanently delete a file by emptying the Recycle Bin after deleting it.
- Shift+Delete skips the Recycle Bin and deletes the file immediately, though recovery may still be possible with data recovery software.
- You cannot delete a file that is currently open in another program — close it first.
Deleting multiple files at once
Click the first file you want to delete, then hold Ctrl and click each additional file. All selected files will highlight. Once you have selected all the files you want to remove, right-click any of the highlighted files and select Delete, or press the Delete key.
If the files are next to each other in a list, you can click the first one, hold Shift, and click the last one. Windows selects everything in between. This is faster than Ctrl+clicking when you have many files in a row.
Permanently deleting a file
Deleting a file to the Recycle Bin does not remove it from your computer permanently. To permanently delete files, you must empty the Recycle Bin. Right-click the Recycle Bin icon on your desktop and select Empty Recycle Bin. Windows permanently removes all files currently in the bin.
If you want to permanently delete a single file without sending it to the Recycle Bin first, select the file and press Shift+Delete instead of just Delete. A confirmation window will appear asking if you are sure. Click Yes to permanently delete the file. This action cannot be undone through the Recycle Bin, though specialized data recovery software may still recover the file in some cases.
What to do if you cannot delete a file
If Windows tells you the file is in use or locked, the file is currently open in another program. Close the program that has the file open, then try deleting again. Check your taskbar and any open windows to find what might be using the file.
If you still cannot delete the file after closing all programs, restart your computer. When Windows starts up again, the file will no longer be in use, and you can delete it normally. If the file is a system file or located in a protected folder like System32, Windows may prevent deletion to protect your computer. Do not force delete system files unless you are certain you know what you are doing.
If a file belongs to another user account on your computer, you may not have permission to delete it. Right-click the file, select Properties, go to the Security tab, and click Edit. Select your username and check the box for Full Control, then click Apply. You should then be able to delete the file.
Recovering a deleted file from the Recycle Bin
Open the Recycle Bin by double-clicking its icon on your desktop. Look through the list of deleted files for the one you want to recover. Right-click the file and select Restore. Windows moves the file back to its original location.
If you cannot find the file in the Recycle Bin, it may have been permanently deleted or the bin may have been emptied. Permanent recovery is not possible through Windows in this case, though third-party data recovery software may be able to retrieve the file depending on how long ago it was deleted and what has been written to your hard drive since then.
Deleting files from external drives and USB devices
When you delete a file from an external hard drive or USB flash drive, it goes to the Recycle Bin just like files on your main hard drive. However, some external devices may bypass the Recycle Bin entirely and delete files permanently. Before deleting important files from an external device, check whether they will go to the Recycle Bin or be permanently deleted.
To be safe with external devices, move files to a temporary folder on your main hard drive first, then delete them from there. This ensures they go to the Recycle Bin where you can recover them if needed. Once you are certain you no longer need the files, empty the Recycle Bin.
Frequently Asked Questions
Can I recover a file after I empty the Recycle Bin?
Once the Recycle Bin is emptied, Windows no longer tracks the file, but the data may still exist on your hard drive. Third-party data recovery software can sometimes retrieve permanently deleted files, especially if you act quickly and have not written much new data to your drive since deletion. The longer you wait, the less likely recovery becomes.
What is the difference between Delete and Shift+Delete?
Delete sends the file to the Recycle Bin, where you can recover it. Shift+Delete permanently removes the file without using the Recycle Bin. Use Shift+Delete only when you are certain you will never need the file again.
Why does Windows say a file is in use when I try to delete it?
A file is in use when a program has it open. Close the program using the file, then try deleting again. If you are not sure which program has the file open, restart your computer. After restart, the file will no longer be in use and you can delete it.
Can I delete a file if I do not own it?
If the file belongs to another user account or is a system file, you may not have permission to delete it. You can change your permissions through the file's Properties and Security settings, but do not delete system files unless you are certain of what you are doing, as this can damage Windows.
Does deleting a file free up space on my hard drive?
Deleting a file to the Recycle Bin does not free up space until you empty the bin. Once the Recycle Bin is emptied, the space is marked as available for new files, though the old data may still be recoverable until Windows overwrites that space with new information.