Share via


Configure Storage Sense

Storage Sense is a Windows feature that helps automatically free up disk space by deleting unnecessary files—like temporary files, items in the recycle bin, and offline content from OneDrive. For IT administrators, especially those managing large device fleets, configuring Storage Sense is a low-effort, high-impact way to ensure devices remain performant and up to date. When left unmanaged, low disk space can prevent critical updates from installing, degrade system performance, and lead to user frustration. When configuring Storage Sense through policy settings, IT admins can automate storage maintenance and reduce support overhead.

Practical scenarios

In sectors like education and in frontline roles across industries such as retail, healthcare, or manufacturing, devices with limited storage capacity are commonly deployed due to cost and portability considerations. For example, students using 64 GB Windows laptops in a shared device program might quickly run out of space due to cached files, downloads, and app data. Similarly, frontline workers using shared, shift-based devices often lack the time or permissions to manage storage manually. In both scenarios, Storage Sense can be configured to automatically remove unused files and optimize storage, helping ensure devices stay responsive and updates install without disruption.

Configuration

By default, Storage Sense is enabled and set to run automatically when disk space is running low. IT administrators can customize its behavior to align with organizational policies and user requirements.

The available configuration options include:

  • Enable or disable Storage Sense at the system level.
  • Enable or disable the cleanup of user temporary files.
  • Set retention thresholds for cloud-backed content: define the minimum number of days a file must remain unaccessed before it's offloaded from the local device (while remaining available in the cloud).
  • Configure cleanup of the Downloads folder: specify the minimum number of days files must remain unaccessed before deletion.
  • Configure cleanup of the Recycle Bin: set how many days items remain before permanent removal.
  • Define the execution cadence for Storage Sense: choose to run Storage Sense daily, weekly, monthly, or only when disk space is low.

The following instructions provide details about how to configure your devices. Select the option that best suits your needs.

To configure devices with Microsoft Intune, create a Settings catalog policy and use the following settings:

Category Setting name Value
Storage Allow Storage Sense Global Toggle to Allow or Block
Storage Allow Storage Sense Temporary Files Cleanup Toggle to Allow or Block
Storage Config Storage Sense Cloud Content Dehydration Threshold Specify a value in the range 0-365
Storage Config Storage Sense Downloads Cleanup Threshold Specify a value in the range 0-365
Storage Config Storage Sense Recycle Bin Cleanup Threshold Specify a value in the range 0-365
Storage Config Storage Sense Global Cadence Choose from:
  0 - Only when disk space is low (default)
  1 - Daily
  7 - Weekly
  30 - Monthly

Assign the policy to a group that contains as members the devices or users that you want to configure.

User Experience

When Storage Sense is configured, automatic disk space management is executed without needing to manually delete temporary files or manage storage. This leads to a smoother user experience, as devices remain responsive and updates can be installed without issues related to low disk space. Users might notice that temporary files are cleaned up periodically, and they don't have to worry about running out of space due to cached data or old files.

Here are some related articles that can help you learn more about managing disk space in Windows:

  • Cleanmgr: The command-line utility cleanmgr.exe, also known as Disk Cleanup, shares overlapping functionalities with Storage Sense and has historically served a similar purpose. Unlike cleanmgr.exe, Storage Sense is a modern, automated disk cleanup feature introduced in Windows 10 and enhanced in later versions.
  • Shared PC feature: Enables IT administrators to deliver a streamlined shared device experience. It includes capabilities such as automatic deletion of user profiles based on inactivity or disk space thresholds, and the ability to restrict access to local storage through File Explorer.
  • Delete user profiles: This policy setting allows an administrator to automatically delete user profiles on system restart that haven't been used within a specified number of days.
  • FileExplorer CSP: Offers settings to manage file access and visibility. Use SetAllowedFolderLocations and SetAllowedStorageLocations policy settings to restrict access to certain storage or folder locations in File Explorer, enhancing security and compliance in managed environments.