Skip to content
Follow
Windows

How to Turn On Storage Sense Temporary File Cleanup in Windows 11

Richard
Written by
Richard
Feb 1, 2026 Updated Jul 13, 2026 3 min read
How to Turn On Storage Sense Temporary File Cleanup in Windows 11
How to Turn On Storage Sense Temporary File Cleanup in Windows 11

Storage Sense in Windows 11 automatically cleans up temporary files to free up disk space.

This built-in Windows feature helps manage your storage by removing unneeded items, like files in your Downloads folder or the Recycle Bin.

Windows 11 recommends using Storage Sense when a drive drops below 20% free space, helping prevent your PC from running slowly.

You can set Storage Sense to run regularly, such as weekly, or only when your computer is running low on storage.

⚡ Quick Answer

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 smart Windows 11 tool that automatically cleans up your computer. It helps free up space by getting rid of files you don’t need, like temporary files, and can also empty your Recycle Bin, keeping your PC running smoothly.

  • 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.

⚠️Warning
Storage Sense, a Windows 11 feature, is turned off by default, meaning temporary file cleanup does not run automatically. Users can activate Storage Sense at any time to manage disk space by deleting unneeded files.

Method 1Using Group Policy Editor

You can manage how Storage Sense cleans up your temporary files using the Group Policy Editor, a tool that lets you change Windows settings. This method allows you to turn the feature on or off to control automatic temporary file cleanup.

  1. Click the Start button and type Edit group policy, then press Enter.
  2. In the window that opens, follow this path on the left side: Computer Configuration > Administrative Templates > System > Storage Sense
  3. On the right side, find Allow Storage Sense Temporary Files cleanup and double-click it.
  4. 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 off
    • Disabled – Storage Sense won’t delete temporary files and users can’t turn it on
  5. Click OK to save your changes.
  6. [REQUIRES ADMIN PRIVILEGES] Restart your computer to make sure the changes take effect.
Windows 11 allow storage sense temporary files cleanup setting
Windows 11 allow storage sense temporary files cleanup setting

Options to enable or disable Storage Sense temporary files cleanup
Options to enable or disable Storage Sense temporary files cleanup

Method 2Using Registry Editor

If you’re comfortable with advanced settings, you can use the Windows Registry Editor to manage Storage Sense temporary file cleanup. This method requires administrator access and lets you fine-tune how Storage Sense handles your temporary files for cleanup.

  1. [REQUIRES ADMIN PRIVILEGES] Open the Registry Editor by typing regedit in the Start menu search and running it as administrator.
  2. Navigate to this folder: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\StorageSense
  3. Look for a value called AllowStorageSenseTemporaryFilesCleanup in the right pane.
  4. If it exists, double-click it and set the number to:
    • 0 to turn off temporary file cleanup
    • 1 to turn on the cleanup
  5. 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 0 to disable, or 1 to enable
  6. Close Registry Editor and restart your PC.
Windows 11 Storage Sense temporary files cleanup registry setting
Windows 11 Storage Sense temporary files cleanup registry setting

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?

Tags: #Windows 11
Was this helpful?
Richard

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.

📚 Related Tutorials

How to Use Storage Sense in Windows 11
Windows How to Use Storage Sense in Windows 11
How to Enable or Disable Storage Sense in Windows 11
Windows How to Enable or Disable Storage Sense in Windows 11
How to Delete Files in Windows 11
Windows How to Delete Files in Windows 11
How to Add Storage Space to Windows 11 Pool
Windows How to Add Storage Space to Windows 11 Pool

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *