How to clear the recycle bin automatically in Windows 11 storage settings
Storage Sense (a built-in tool that cleans up junk files automatically) deletes files from the Recycle Bin in Windows 11 on a regular schedule you set. Left alone, deleted items stay in the Recycle Bin and take up disk space until you empty them by hand.
You can turn on automatic cleaning in the Settings app so Windows empties the bin every 1, 14, 30, or 60 days.
Right-click the Recycle Bin icon on your desktop and select Empty Recycle Bin to delete all stored files immediately. To automate the process, open Settings System Storage, switch Storage Sense to On, and choose your preferred cleanup schedule under the temporary files configuration menu.
How to Empty the Recycle Bin Manually
Emptying the Recycle Bin manually is the fastest way to free up disk space right away without waiting for automated schedules. You can do this in just a few clicks by right-clicking the Recycle Bin icon on your desktop and choosing the option to clear it, or by opening the folder and clicking the cleanup button in the top menu.
- Locate the Recycle Bin icon on your desktop.
- Right-click the icon to open a context menu .
- Select Empty Recycle Bin .

- Click Yes on the confirmation prompt to permanently delete the contents.
Alternatively, you can open the Recycle Bin by double-clicking its icon, click the Empty Recycle Bin button located on the command bar at the top of the window, and confirm the deletion.
Automate Cleanup Using Storage Sense
Storage Sense (a built-in tool that deletes junk files automatically) can empty your Recycle Bin on a regular schedule so you never have to do it yourself. You set this up inside the Windows Settings app by turning on the feature and telling Windows how often you want it to delete files that have been sitting in your bin.
- Open Settings .

Windows 11 Start menu with Settings gear icon highlighted. - Navigate to System and select Storage.

Settings › System › Storage - Toggle the switch for Storage Sense to On.
- Click on Storage Sense to open its configuration menu.

Settings › Storage › Storage Sense - Locate the section labeled Temporary Files.
- Use the dropdown menu under Configure cleanup schedule to select how often you want Windows to delete files in your temporary storage area, such as every 30 days.
Use Command Prompt to Clear the Bin
Clearing the Recycle Bin using Command Prompt lets you bypass frozen menus and force Windows to delete all stored files instantly. By running an administrator-level text command, you can purge the hidden system folder where deleted items live and clear out stubborn files that refuse to delete normally.
- Open the Start menu, type
cmd, right-click Command Prompt, and select Run as administrator (requires administrator privileges). - Type the following command and press Enter:
rd /s /q C:\$Recycle.Bin - Close the command prompt window once the operation completes.
Use PowerShell to Clear the Bin
PowerShell provides an alternative command-line method to force-empty the temporary holding directory without opening the graphical interface.
- Open the Start menu, type
powershell, right-click Windows PowerShell, and select Run as administrator (requires administrator privileges). - Type the following cmdlet and press Enter:
Clear-RecycleBin -Force -ErrorAction SilentlyContinue - Close the PowerShell window.
Troubleshooting: When the Bin Gets Stuck
Fixing a stuck Recycle Bin usually requires forcing the system to clear corrupted file indexes or stopping background processes that lock the directory. When the graphical window freezes or throws error messages during cleanup, switching to administrator tools helps you bypass the stuck interface and force the files to delete.
To fix this, open Command Prompt or PowerShell with administrator privileges, run the cleanup commands detailed in the previous sections, and restart your computer. If a single corrupted file causes the entire interface to hang, running the command-line purge bypasses the graphical shell entirely and forces the system to delete the underlying folder structure.
If this didn't work
Persistent Recycle Bin issues where deleted files keep coming back are usually caused by third-party antivirus software or corrupted system files interfering with Windows operations. Resolving this requires checking your security settings for aggressive file monitoring or running system repair tools to restore normal desktop functions.
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.
No comments yet — be the first to share your thoughts!