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 Hive | HKEY_LOCAL_MACHINE |
Registry Path | Software\Policies\Microsoft\Windows\StorageSense |
Value Name | ConfigStorageSenseRecycleBinCleanupThreshold |
Value Type | REG_DWORD |
Enabled Value | 1 |
Disabled Value | 0 |
Registry Hive | HKEY_LOCAL_MACHINE |
Registry Path | Software\Policies\Microsoft\Windows\StorageSense |
Value Name | ConfigStorageSenseRecycleBinCleanupThreshold |
Value Type | REG_DWORD |
Default Value | 30 |
Min Value | 0 |
Max Value | 365 |