You can delete a file in Windows 11 by selecting it in File Explorer and pressing Delete. In most cases the file is not gone yet: it goes to the Recycle Bin, where it waits until you restore it or empty the bin. [1]
That safety net is why deleting is usually low-risk, but it also means a deleted file still takes up disk space until the bin is emptied. File Explorer opens with Windows key + E, and its toolbar includes a delete option. [2]
This article covers the main ways to delete a single file, how to remove several files at once, how to delete permanently and skip the Recycle Bin, and what to try when a stubborn file refuses to go.
What should you know before deleting a file?
Before you delete anything, know that a normal delete in Windows 11 is not final: the file usually waits in the Recycle Bin, and only a permanent delete removes it for good.
Open File Explorer first
Most deleting starts in File Explorer. Press Windows key + E, or click the yellow folder icon on the taskbar. [2]
Then pick a location in the left pane and open folders by double-clicking them. The toolbar at the top includes a delete option, along with create, copy, move, rename and share. [2] It also helps to read How to Move a File in Windows 11: 4 Easy Methods.
The Recycle Bin is your safety net
When you delete a file from your PC the usual way, the data is not lost. Deleted files are stored temporarily in the Recycle Bin, and you can restore them from there. [1]
For example, if you delete a school assignment by accident on Monday, you can open the Recycle Bin, find it and restore it instead of rewriting it.
Permanent deletion removes that net
If you delete files from the Recycle Bin itself, they can no longer be retrieved the easy way. Getting them back would take a paid recovery program or a previous backup. [1]
That is why the normal Delete route is the better habit for everyday cleanup. The exact steps for permanent removal come later in this article.
Windows 10 is very similar
The basics work the same way on Windows 10: File Explorer is where you find the file, and deleted files go to the Recycle Bin first. The main difference is how the right-click menu looks, which is covered in the step-by-step section.
How do you delete a file step by step?
Deleting a file takes three actions: open the folder in File Explorer, select the file, and delete it with the keyboard or the right-click menu.
Open File Explorer. Press Windows key + E or click the yellow folder icon on the taskbar. [2]
Find and select the file. Pick a location in the left pane, then double-click folders until you reach the file. Click the file once to select it. [2]
Delete it. Press the Delete key. Or right-click the selected file and choose the delete option in the context menu. [3]
Confirm if Windows asks. If a prompt appears, click “Yes” to confirm the deletion. [3]
The file disappears from the folder. Say you have budget-old.xlsx in Documents: click it once, press Delete, and it is gone from the list.
You can also use the toolbar at the top of File Explorer, which handles tasks such as create, copy, move, rename, share and delete. [2]
VERSIONS: Windows 11 and Windows 10
The steps are the same on both, and the main difference is where the delete control sits.
Windows 11: The toolbar at the top of File Explorer uses icons, so look for the trash can icon rather than a text label. [2] The right-click menu is also the newer, shorter layout.
Windows 10: The right-click context menu is the older, longer one, and the Delete option appears in it as a text entry. [3]
How do you delete several files at once?
You can delete several files in one go by selecting them all first, then using Delete or the right-click menu. In File Explorer, the Ctrl key does the selecting for you.
Open File Explorer and go to the folder that holds the files. [3]
Press and hold Ctrl on your keyboard. [3]
While holding Ctrl, click each file you want to delete. Every file you click stays highlighted, so you can skip the ones you want to keep. [3]
Press the Delete key, or right-click one of the highlighted files and choose Delete from the menu. [3]
If Windows asks you to confirm, click “Yes.” [3]
The selected files are then removed from the folder together.
Select every file in a folder
If you want to clear out a whole folder, press Ctrl+A while the folder is open. This highlights everything in it, and you can then press Delete as in step 4.
You can also combine the two methods. Press Ctrl+A first, then hold Ctrl and click the few files you want to keep to deselect them. Press Delete, and only the files still highlighted are removed.
A practical example
Say your Downloads folder has ten installer files you no longer need, mixed in with a few documents. Hold Ctrl, click each installer, release the key, and press Delete. The documents stay untouched because you never highlighted them.
How do you delete a file permanently instead of using the Recycle Bin?
Permanent deletion means the file skips the Recycle Bin, so you only get it back from a backup or recovery software. Emptying the bin is the simplest way to remove files for good, and it is also how you recover from a mistake while the files are still in the bin.
Before you start: once a file is deleted from the Recycle Bin, the data cannot be retrieved from the bin. Your options are then a paid recovery program or a previous backup copy. [1] Copy anything important to a backup location first.
Empty the Recycle Bin to delete files for good
Double-click the Recycle Bin icon on the desktop to open it. [1]
In the top menu, click the three dots beside Empty Recycle Bin. [1]
Click Select all. [1]
Click Delete. [1]
If you only want to remove one file, you can skip “Select all” and pick just that file. The bin then holds the rest until you are ready.
Restore a file you deleted by mistake
Files you delete normally are stored temporarily in the Recycle Bin, so you can restore them from there. [1] Do this before you empty the bin.
Double-click Recycle Bin to open it. [1]
Find the file you want to recover. [1]
Right-click the file. [1]
Click Restore. [1]
The file returns to its original location on your computer. [3] For example, a report deleted from Documents reappears in Documents.
What if a file will not delete?
Some files ignore the normal Delete key, and for those the methods to reach for are Command Prompt or Safe Mode. [4] Before trying either, close any app that might be using the file, such as a document editor, a media player or a preview pane. A file that is open somewhere often becomes deletable the moment you close that program.
Force delete with Command Prompt
Command Prompt lets you bypass locks or restrictions on a file. [4] Follow these steps in order:
Press the Windows key, type “Command Prompt,” right-click it, and select “Run as administrator.” Administrative privileges give you the permissions needed to delete protected or stubborn files. [4]
Go to the folder that holds the file, replacing the placeholder with the real path:
cd path_to_file_location
This changes the directory to the file’s location. [4]
List the folder’s contents so you can confirm the exact file name:
dir
Delete the file, replacing “filename” with its name:
del /f filename
The /f flag forces deletion even if the file is read-only or in use by another program. [4]
For example, if a stuck file called report.docx sits in your Documents folder, you would change to that folder, run dir to see the name, then run del /f report.docx. Run dir once more afterward, and the file should no longer be listed. For the next step, see How to Change File Icon on Windows 11 (Files, Folders, Shortcuts).
Try Safe Mode if that fails
Safe Mode is the other method for stubborn files. [4] The idea is to delete the file after restarting Windows in that mode, when fewer programs are running. Once you are in Safe Mode, delete the file the usual way in File Explorer, or use the Command Prompt steps above.
Which way of deleting should you use?
For most files, just select the file and press Delete, so it goes to the Recycle Bin. Files sent there are stored temporarily and can be restored from the bin, which makes it a forgiving default. [1]
Empty the bin only when you are sure you no longer need what is in it. Once files are deleted from the Recycle Bin, they are lost, and getting them back would take paid recovery software or a previous backup. [1]
A related task: if you want a file somewhere else rather than gone, move it instead of deleting it. Your next step is to open File Explorer with Windows key + E and clear out one file you no longer need. [2]
