How to Turn On Storage Sense Temporary File Cleanup in Windows 11
Storage Sense is a built-in Windows 11 tool that automatically finds and deletes junk files to free up disk space on your computer. It handles routine cleanup tasks by removing old items you no longer need, such as files sitting in your Recycle Bin or leftover setup files.
Windows 11 turns on this feature automatically when your hard drive drops below 20% free space. You can set Storage Sense to run on a set schedule, like every week, so your PC stays fast without needing manual cleanups.
Enable temporary file cleanup by setting the AllowStorageSenseTemporaryFilesCleanup value to 1 in the Registry Editor under 🗝️HKEY_LOCAL_MACHINESOFTWAREPoliciesMicrosoftWindowsStorageSense. Alternatively, in the Local Group Policy Editor, navigate to Computer Configuration Administrative Templates System Storage Sense and enable the Allow Storage Sense Temporary Files cleanup setting.
What is Storage Sense?
Storage Sense is a built-in Windows 11 feature that automatically frees up disk space by deleting files you no longer need. It targets unneeded data like temporary system files, old items in your Recycle Bin , and files sitting in your Downloads folder, which helps keep your computer running well without needing manual cleanups.
- Deletes temporary files you don’t need
- Empties the Recycle Bin after a certain time
- Cleans files in your Downloads folder after a while
Storage Sense temporarily cleans up unused files to free up computer storage space automatically. This feature prevents users from needing to manually delete old documents, downloads, and temporary files, ensuring more room for current programs and data.
What happens when you turn it on? Storage Sense runs automatically when your disk space gets low and removes temporary files.
Users can activate Storage Sense at any time to manage disk space by deleting unneeded files.
Method 1Using Group Policy Editor
You can turn on Storage Sense temporary files using the Group Policy Editor, a built-in tool that lets you control system settings across your PC. This method works well for managing automatic cleanup rules on Windows Pro or Enterprise editions, letting you enable or disable the feature directly through the policy interface.
- Click the Start button and type
Edit group policy, then press Enter. - In the window that opens, follow this path on the left side:
Computer Configuration > Administrative Templates > System > Storage Sense - On the right side, find
Allow Storage Sense Temporary Files cleanupand double-click it. - Choose one of these options:
Not Configured– Leaves it as default (Storage Sense can be turned on or off by users)Enabled– Storage Sense will delete temporary files automatically and users won't be able to turn this offDisabled– Storage Sense won't delete temporary files and users can't turn it on
- Click
OKto save your changes. - [REQUIRES ADMIN PRIVILEGES] Restart your computer to make sure the changes take effect.


Method 2Using Registry Editor
You can enable Storage Sense temporary files using the Registry Editor, a powerful database that stores low-level Windows settings. This method lets you control automatic temporary file cleanup by editing registry keys directly, which is useful if your version of Windows does not include the Group Policy Editor.
- [REQUIRES ADMIN PRIVILEGES] Open the Registry Editor by typing
regeditin the Start menu search and running it as administrator. - Navigate to this folder:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\StorageSense - Look for a value called
AllowStorageSenseTemporaryFilesCleanupin the right pane. - If it exists, double-click it and set the number to:
0to turn off temporary file cleanup1to turn on the cleanup
- If it doesn't exist:
- Right-click in the right pane and select
New > DWORD (32-bit) Value - Name it
AllowStorageSenseTemporaryFilesCleanup - Double-click it and set the value to
0to disable, or1to enable
- Right-click in the right pane and select
- Close Registry Editor and restart your PC.

Summary
Storage Sense is a useful Windows tool that automatically removes temporary files, and you can control its temporary file cleanup feature using either the Group Policy Editor or the Registry Editor.
Does storage Sense delete temporary files?
If Storage Sense is turned on with the default settings, it will run when your device is low on disk space and will clean up unnecessary temporary files.
Is it okay to delete temporary files in storage?
Yes, it's generally safe to delete temporary files found in the Temp folder, typically located at C:\Users\AppData\Local\Temp.
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!