Policy
Configure Storage Storage Downloads cleanup threshold
Windows 11 25H2
Policy overview
Key metadata and intent for this policy.
Supported OS tags: Windows10, Windows10RT, Windows11, WindowsServer2016
When Storage Sense runs, it can delete files in the user’s Downloads folder if they haven’t been opened for more than a certain number of days. If the group policy "Allow Storage Sense" is disabled, then this policy does not have any effect. Enabled: You must provide the minimum number of days a file can remain unopened before Storage Sense deletes it from Downloads folder. Supported values are: 0 - 365. If you set this value to zero, Storage Sense will not delete files in the user’s Downloads folder. The default is 0, or never deleting files in the Downloads folder. Disabled or Not Configured: By default, Storage Sense will not delete files in the user’s Downloads folder. Users can configure this setting in Storage settings.
Registry values
How enabled and disabled states update the registry.
No explicit registry values are set for enabled or disabled states.
Policy elements
Inputs and configuration options exposed by this policy.
| Element | Type | Registry mapping | Constraints & behavior |
|---|---|---|---|
Minimum age (in days) of a files in the Downloads folder before Storage sense will delete it (0 is never deleting files): ID StorageSenseDownloadsCleanupThreshold | decimal | HKLM\Software\Policies\Microsoft\Windows\StorageSense\ConfigStorageSenseDownloadsCleanupThreshold Type REG_DWORD | Range: 0 to 365 |
Other policies in this category
Explore related policies at the same level.
- ComputerAllow Storage SenseAt least Windows Server 2016, Windows 10 Version 1903
- ComputerAllow Storage Sense Temporary Files cleanupAt least Windows Server 2016, Windows 10 Version 1903
- ComputerConfigure Storage Sense cadenceAt least Windows Server 2016, Windows 10 Version 1903
- ComputerConfigure Storage Sense Cloud Content dehydration thresholdAt least Windows Server 2016, Windows 10 Version 1903
- ComputerConfigure Storage Sense Recycle Bin cleanup thresholdAt least Windows Server 2016, Windows 10 Version 1903