How to Delete Files and Folders in Windows 11
Deleting files helps you stay organized and keeps your computer running fast. Over time, your drive fills up with old downloads, temporary files, and documents you no longer need. Removing these items frees up space for new apps and files.
What happens when you delete files?
When you delete a file, Windows 11 usually sends it to the Recycle Bin. It stays there until you empty it. This acts as a safety net. If you delete something by mistake, you can restore it easily. If you delete a file permanently, it is removed from your hard drive entirely and is much harder to recover.
How to move items to the Recycle Bin
This is the safest way to remove files. You can always change your mind later.
- 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.
You can also use the toolbar in File Explorer to delete items.

Another option is to right-click the file and select the trash can icon.

For more choices, right-click and select “Show more options.”

Then, click the “Delete” command from that menu.

How to restore deleted items
Did you make a mistake? You can bring files back from the Recycle Bin.
- 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.
To bring everything back at once, choose Restore all items.

How to permanently delete files
If you want to delete a file forever without sending it to the Recycle Bin, follow these steps:
- Select the file or folder.
- Hold down the SHIFT key on your keyboard.
- While holding SHIFT, 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 + Delete?
The standard Delete key moves files to the Recycle Bin, allowing for easy recovery. Shift + Delete 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
Sometimes, system files or files used by a specific user like C:\Users\GenericUser\Documents may be locked. If you are an administrator, you can force-delete stubborn files using the Command Prompt. (Requires Admin Privileges)
Run the following command to remove a file:
del /f /q "C:\Path\To\File.txt"Storage optimization and automation
You can use Windows 11 Storage Sense to automatically free up disk space. Go to Settings > System > Storage to turn this on. It will automatically empty your Recycle Bin and remove temporary files. For more details, visit the official Microsoft support page on freeing up drive space.
Summary
Deleting files in Windows 11 is a simple way to manage your storage. Use the standard Delete key for temporary removal, or Shift + Delete for permanent deletion. Always use tools like Storage Sense to keep your system clean, and remember that files deleted from OneDrive are removed from all synced locations.
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?
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. […]