How to Delete Files and Folders in Windows 11
You can delete files and folders in Windows 11 using the Delete key, the right-click menu, or by dragging them to the Recycle Bin.
Deleting unnecessary files helps organize your storage and frees up valuable disk space, which is crucial for maintaining your PC’s performance. This straightforward process applies to all users, regardless of their technical expertise.
For example, temporary internet files alone can sometimes grow to several gigabytes, impacting browser speed. Understanding how to remove them efficiently is just one benefit of mastering these deletion methods.
Delete files and folders in Windows 11 by pressing the Delete key, dragging them to the Recycle Bin, or right-clicking and selecting Delete. For permanent deletion, hold Shift while pressing Delete.
What happens when you delete files?
When you delete files in Windows 11, they usually go to the Recycle Bin first, acting like a temporary holding place.
How to move items to the Recycle Bin
Moving files to the Recycle Bin is the safest way to delete them in Windows 11, letting you get them back easily if you change your mind.
- Click the file or folder once to select it.
- Press the DELETE key on your keyboard.
- Alternatively, drag the item into the Recycle Bin icon on your desktop.
Click the file or folder once to select it.
Press the DELETE key on your keyboard.
Alternatively, you can drag the item directly into the Recycle Bin icon on your desktop. File Explorer’s toolbar also offers delete options.

For more choices, right-click the file, select “Show more options,” and then choose “Delete.”



How to restore deleted items
If you accidentally delete a file, you can easily restore it from the Recycle Bin in Windows 11 by opening it and selecting the item you want back.
- Open the Recycle Bin on your desktop.
- Select the item you want to get back.
- Click the three dots (ellipsis) in the toolbar.
- Select Restore the selected items.
Right-click the Recycle Bin icon on your desktop.
Select “Open.”
Click the file you want to retrieve.
Click “Restore the selected item” in the toolbar.
To bring everything back at once, choose Restore all items.

How to permanently delete files
To permanently delete files in Windows 11, bypassing the Recycle Bin entirely, you need to use a specific key combination.
- Hold down the SHIFT key on your keyboard.
- While holding SHIFT, press the DELETE key.
Click the file or folder once to select it.
Press and hold the Shift key on your keyboard.
Press the DELETE key.
Windows will ask you to confirm this action because you cannot undo it.

What is the difference between Delete and Shift+Del?
The standard Delete key moves files to the Recycle Bin, allowing for easy recovery. Shift+Del bypasses the Recycle Bin entirely, permanently removing the file from your drive. Use the latter only when you are certain you no longer need the data, as it is much harder to recover.
Advanced deletion and locked files
If a file is locked or won’t delete normally in Windows 11, you can use the Command Prompt to force its deletion, even if it’s a stubborn system file.
Run the following command to remove a file:
del /f /q "C:\Path\To\File.txt"Storage optimization and automation
Windows 11’s Storage Sense feature helps you automatically free up disk space by managing temporary files and emptying the Recycle Bin.
Summary
Managing your storage in Windows 11 involves knowing how to delete files, whether temporarily using the Recycle Bin or permanently with Shift+Del.
Does deleting a file from OneDrive also delete it from my PC?
Yes, if you have OneDrive syncing enabled, deleting a file from your synced folder will remove it from both your local PC and the cloud storage. Always check your OneDrive settings if you want to keep a local copy while removing the cloud version, or use Files On-Demand.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
I try to delete folder than under users, I got message: “This action can’t be completed because the folder or a file in it is open in another program. Close the folder or file and try again.”
this folder is created by windows 11 and name is “defaultuser0”.
My question is: How to close this folder and file?
[…] the Microsoft Windows operating system. A graphical user interface lets you view, copy, move, delete, and rename files and folders and organize them […]
[…] you accidentally delete a file or folder in OneDrive, you may be able to recover it later from the OneDrive recycle bin. First, […]
[…] in the Microsoft Windows operating system. A graphical user interface lets you view, copy, move, delete, and rename files and folders and organize them in a hierarchical […]
[…] Microsoft Windows operating system. A graphical user interface lets you view, copy, move, delete, and rename files and folders and organize them […]
[…] you delete files or folders, the data isn’t initially removed from the hard disk. Instead, the space on the disk occupied […]
[…] You can delete files and folders: How to delete files and folders […]
[…] Tip: If you want to learn more about deleting files the usual way, check out this easy guide: How to Delete Files and Folders in Windows 11. […]