Configure Storage Storage Downloads cleanup threshold: registry value ConfigStorageSenseDownloadsCleanupThresholdComputerHKLM\Software\Policies\Microsoft\Windows\StorageSense
- Policy ID
- SS_ConfigStorageSenseDownloadsCleanupThreshold
- Scope
- Computer Configuration
- Supported on
- At least Windows Server 2016, Windows 10 Version 1903
- Source
- Administrative Templates (.admx) for Windows 11 2026 Update (26H2) (version 1.0)
- Category
- System › Storage Sense
Registry
ConfigStorageSenseDownloadsCleanupThreshold
REG_DWORDComputer- Enabled value
- Depends on the option value
- Element
- Minimum age (in days) of a files in the Downloads folder before Storage sense will delete it (0 is never deleting files):
- Value type
- REG_DWORD
- Minimum value
- 0
- Maximum value
- 365
Apply with .reg · CMD · PowerShell
.reg
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\StorageSense] ; Value names and types follow the ADMX. Replace <enter value> below with your own data "ConfigStorageSenseDownloadsCleanupThreshold"=dword:<enter value>
CMD
:: Value names and types follow the ADMX. Replace <enter value> below with your own data reg add "HKLM\Software\Policies\Microsoft\Windows\StorageSense" /v "ConfigStorageSenseDownloadsCleanupThreshold" /t REG_DWORD /d "<enter value>" /f
PowerShell
# Value names and types follow the ADMX. Replace <enter value> below with your own data New-Item -Path 'HKLM:\Software\Policies\Microsoft\Windows\StorageSense' -Force | Out-Null New-ItemProperty -Path 'HKLM:\Software\Policies\Microsoft\Windows\StorageSense' -Name 'ConfigStorageSenseDownloadsCleanupThreshold' -PropertyType DWord -Value '<enter value>' -Force | Out-Null