Configure Storage Sense to Purge Downloads in Regedit
This article provides a step-by-step guide on how to configure Windows Storage Sense using the Registry Editor (Regedit) to automatically purge contents from your Downloads folder. By adjusting specific registry DWORD values, you can enable Storage Sense and define an automated cleanup interval for old or unneeded download files.
Step 1: Open the Registry Editor
- Press Windows Key + R to open the Run dialog box.
- Type
regeditand press Enter (or click OK). - If prompted by User Account Control (UAC), click Yes to grant administrative privileges.
Step 2: Navigate to the Storage Sense Registry Key
In the Registry Editor address bar at the top, paste the following path and press Enter:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy
Note: If the StoragePolicy subkey does not exist,
right-click the Parameters folder, select New >
Key, and name it StoragePolicy.
Step 3: Enable Storage Sense
To ensure Storage Sense runs automatically:
- Locate the DWORD value named
01in the right pane. If it does not exist, right-click an empty space, select New > DWORD (32-bit) Value, and name it01. - Double-click the
01value. - Set the Value data to
1. - Click OK.
Step 4: Configure the Downloads Cleanup Interval
The DWORD value 32 controls the retention threshold for
files inside the Downloads folder.
- In the right pane, look for a DWORD named
32. If it is missing, right-click, select New > DWORD (32-bit) Value, and name it32. - Double-click
32to edit its value. - Select the Decimal base option.
- Set the Value data to one of the following numbers
depending on your desired purge timeline:
0= Never delete downloaded files.1= Delete files older than 1 day.14= Delete files older than 14 days.30= Delete files older than 30 days.60= Delete files older than 60 days.
- Click OK to save the changes.
Step 5: Apply the Changes
Close the Registry Editor. The configuration takes effect immediately for the current user profile. Storage Sense will automatically purge files in your Downloads folder that exceed the specified age threshold during its scheduled maintenance runs.