Policy
Configure Storage Sense Recycle Bin 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 Recycle Bin if they have been there for over a certain amount 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 age threshold (in days) of a file in the Recycle Bin before Storage Sense will delete it. Supported values are: 0 - 365. If you set this value to zero, Storage Sense will not delete files in the user’s Recycle Bin. The default is 30 days. Disabled or Not Configured: By default, Storage Sense will delete files in the user’s Recycle Bin that have been there for over 30 days. 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 Recycle Bin folder before Storage sense will delete it (0 is never deleting files): ID StorageSenseRecycleBinCleanupThreshold | decimal | HKLM\Software\Policies\Microsoft\Windows\StorageSense\ConfigStorageSenseRecycleBinCleanupThreshold 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 Storage Downloads cleanup thresholdAt least Windows Server 2016, Windows 10 Version 1903