Specify Storage Sense Delete Files in Downloads Folder in Windows 10  

    Specify Storage Sense Delete Files in Downloads Folder in Windows 10

    Specify Storage Sense Delete Files in Downloads Folder in Windows 10

    How to Specify when Storage Sense Delete Files in Downloads Folder in Windows 10
    Published by Category: Performance & Maintenance
    28 Nov 2018
    Designer Media Ltd

    How to Specify when Storage Sense Delete Files in Downloads Folder in Windows 10


    Starting with Windows 10 build 15014, Microsoft has added a new Automatically free up space with Storage Sense option in Storage Settings to automatically get rid of the files you don’t need to save you an extra step when low on disk space. Currently this is only supported for unused temporary files, files in your recycle bin over 30 days, and files in your Downloads folder that haven't changed for over 30 days.

    Starting with Windows 10 build 17720, Storage Sense can now run when your device is low on storage space by default. Once activated, Storage Sense will intelligently run whenever your device runs low on storage space and clear temporary files that your device and applications no longer need.Storage Sense looks for and will remove the following types of files:
    • Temporary setup files
    • Old indexed content
    • System cache files
    • Internet cache files
    • Device Driver packages
    • System downloaded program files
    • Dated system log files
    • System error memory dump files
    • System error minidump files
    • Temporary system files
    • Dated Windows update temporary files
    • …and more.

    When Storage Sense is turned on or enabled, it can delete files in the user’s Downloads folder if they have been there for over a certain amount of days.

    Starting with at least Windows 10 build 18282, you can now configure a group policy to specify when Storage Sense (if turned on or enabled) will delete files in the Downloads folder for all users.

    This tutorial will show you how to specify when Storage Sense will automatically delete files in the Downloads folder for your account or all users in Windows 10.


     CONTENTS:

    • Option One: Specify when Storage Sense Delete Files in Downloads Folder for Current User in Settings
    • Option Two: Specify when Storage Sense Delete Files in Downloads Folder for Current User using a REG file
    • Option Three: Specify when Storage Sense Delete Files in Downloads Folder for All Users in Local Group Policy Editor
    • Option Four: Specify when Storage Sense Delete Files in Downloads Folder for All Users in Registry Editor






    OPTION ONE

    Specify when Storage Sense Delete Files in Downloads Folder for Current User in Settings


    1. Open Settings, and click/tap on the System icon.

    2. Click/tap on Storage on the left side, turn on Storage sense on the right side, and click/tap on the Configure Storage Sense or run it now link. (see screenshot below)

    Specify Storage Sense Delete Files in Downloads Folder in Windows 10-storage_sense_downloads_folder_settings-1.jpg

    3. Under Temporary Files, select Never (default), 1 day, 14 days, 30 days, or 60 days for what you want in the Delete files in my Downloads folder if they have been there for over drop down list. (see screenshot below)

    Specify Storage Sense Delete Files in Downloads Folder in Windows 10-storage_sense_downloads_folder_settings-2.png

    4. You can now close Settings if you like.






    OPTION TWO

    Specify when Storage Sense Delete Files in Downloads Folder for Current User using a REG file



    The downloadable .reg files below will modify the DWORD values in the registry key below.

    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\StorageSense\Parameters\StoragePolicy

    32 DWORD

    0 = Never
    1 = 1, 14, 30, or 60 days

    512 DWORD

    0 = Never
    1 = 1 day
    e (hex) = 14 days
    1e (hex) = 30 days
    3c (hex) = 60 days



    1. Do step 2 (Never), step 3 (1 day), step 4 (14 days), step 5 (30 days), or step 6 (60 days) below for what you want to do.


     2. Specify Storage Sense to Never delete files in Downloads folder

    This is the default setting.

    A) Click/tap on the Download button below to download the file below, and go to step 7 below.

    Storage_Sense_delete_files_in_Downloads_folder_Never_for_current_user.reg

    Download


     3. Specify Storage Sense to delete files in Downloads folder if they have been there for over "1 day"

    A) Click/tap on the Download button below to download the file below, and go to step 7 below.

    Storage_Sense_delete_files_in_Downloads_folder_over_1_day_for_current_user.reg

    Download


     4. Specify Storage Sense to delete files in Downloads folder if they have been there for over "14 days"

    A) Click/tap on the Download button below to download the file below, and go to step 7 below.

    Storage_Sense_delete_files_in_Downloads_folder_over_14_days_for_current_user.reg

    Download


     5. Specify Storage Sense to delete files in Downloads folder if they have been there for over "30 days"

    A) Click/tap on the Download button below to download the file below, and go to step 7 below.

    Storage_Sense_delete_files_in_Downloads_folder_over_30_days_for_current_user.reg

    Download


     6. Specify Storage Sense to delete files in Downloads folder if they have been there for over "60 days"

    A) Click/tap on the Download button below to download the file below, and go to step 7 below.

    Storage_Sense_delete_files_in_Downloads_folder_over_60_days_for_current_user.reg

    Download

    7. Save the .reg file to your desktop.

    8. Double click/tap on the downloaded .reg file to merge it.

    9. When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.

    10. If you like, you can delete the downloaded .reg file if you like.






    OPTION THREE

    Specify when Storage Sense Delete Files in Downloads Folder for All Users in Local Group Policy Editor


    This option is only available starting with at least Windows 10 build 18282.

    You must be signed in as an administrator to do this option

    If specified, this option will override Option One and Option Two for all users on the computer.

    The Local Group Policy Editor is only available in the Windows 10 Pro, Enterprise, and Education editions.

    All editions can use Option Four.

    1. Open the Local Group Policy Editor.

    2. Navigate to the key below in the left pane of the Local Group Policy Editor. (see screenshot below)

    Computer Configuration\Administrative Templates\System\Storage Sense

    Specify Storage Sense Delete Files in Downloads Folder in Windows 10-storage_sense_downloads_folder_gpedit-1.jpg

    3. In the right pane of Storage Sense in Local Group Policy Editor, double click/tap on the Configure Storage Storage Downloads cleanup threshold policy to edit it. (see screenshot above)

    4. Do step 5 (specify) or step 6 (default) below for what you would like to do.


     5. To Specify when Storage Sense Delete Files in Downloads Folder

    A) Select (dot) Enabled, enter a number between 0 to 365 for how may days you want, click/tap on OK, and go to step 7 below. (see screenshot below)

    Entering 0 will be for never.


     6. Default User Choice for when Storage Sense Delete Files in Downloads Folder

    A) Select (dot) Not Configured or Disabled, click/tap on OK, and go to step 7 below. (see screenshot below)

    Not Configured is the default setting.

    Specify Storage Sense Delete Files in Downloads Folder in Windows 10-storage_sense_downloads_folder_gpedit-2.png

    7. When finished, you can close the Local Group Policy Editor if you like.






    OPTION FOUR

    Specify when Storage Sense Delete Files in Downloads Folder for All Users in Registry Editor


    This option is only available starting with at least Windows 10 build 18282.

    You must be signed in as an administrator to do this option

    If specified, this option will override Option One and Option Two for all users on the computer.

    1. Press the Win+R keys to open Run, type regedit into Run, and click/tap on OK to open Registry Editor.

    2. Navigate to the key below in the left pane of Registry Editor. (see screenshot below)

    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\StorageSense

    If you do not have the StorageSense key, right click on the Windows key, click/tap on New, click/tap on Key, type StorageSense for the name, and press Enter.

    Specify Storage Sense Delete Files in Downloads Folder in Windows 10-storage_sense_downloads_folder_regedit-1.jpg

    3. Do step 4 (specify) or step 5 (default) below for what you want to do.


     4. To Specify when Storage Sense Delete Files in Downloads Folder

    A) In the right pane of the StorageSense key, double click/tap on the ConfigStorageSenseDownloadsCleanupThreshold DWORD to modify it. (see screenshot below step 2)

    If you do not have a ConfigStorageSenseDownloadsCleanupThreshold DWORD, right click on an empty area in the right pane of the StorageSense key, click/tap on New, click/tap on DWORD (32-bit) Value, type ConfigStorageSenseDownloadsCleanupThreshold for the name, and press Enter.

    B) Select (dot) Decimal, enter a number between 0 to 365 for how may days you want, click/tap on OK, and go to step 6 below. (see screenshot below)

    Entering 0 will be for never.

    Specify Storage Sense Delete Files in Downloads Folder in Windows 10-storage_sense_downloads_folder_regedit-2.png


     5. Default User Choice for when Storage Sense Delete Files in Downloads Folder

    A) In the right pane of the StorageSense key, right click on the ConfigStorageSenseDownloadsCleanupThreshold DWORD, and click/tap on Delete. (see screenshot below step 2)

    B) Click/tap on Yes to confirm, and go to step 6 below. (see screenshot below)

    Specify Storage Sense Delete Files in Downloads Folder in Windows 10-storage_sense_downloads_folder_regedit-3.png

    6. You can now close Registry Editor if you like.


    That's it,
    Shawn






  1. Posts : 668
    Win 10 pro
       #1

    Hi, first of all let me thank you for the detailed tutorial.

    There is one point that I do not find clear:

    Starting with Windows 10 build 17720, Storage Sense can now turn itself on when your device is low on storage space.
    What do you mean with "Storage Sense can now turn itself on" ?

    I see there is a switch that can turn on/off storage sense, my storage sense is now disabled

    Specify Storage Sense Delete Files in Downloads Folder in Windows 10-storage.jpg

    what happen when I'll be low on spage, will files be removed, meaning that it will turn itself on and files will be removed even if the swictch is "disabled"?

    Thanks.
      My Computer


  2. Posts : 68,673
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #2

    Hello Roy,

    No worries. That would only happen if you have Storage Sense turned on and select to run "During low free disk space". This is the default setting.

    If you have Storage Sense turned off, it cannot turn itself on.

    I'll reword that now from what Microsoft had to help.
      My Computers


  3. Posts : 668
    Win 10 pro
       #3

    Thanks, I understand better now.
      My Computer


  4. Posts : 68,673
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #4

      My Computers


  5. Posts : 197
    Windows 11 Home
       #5

    Even though I set it to delete items in the download folder to 1 day and manually ran storage sense it does not seem to auto delete anything in the downloads folder, both on 10 and 11. I have files in my download folder from a month ago I have not touched.

    Specify Storage Sense Delete Files in Downloads Folder in Windows 10-storage-sense-.png
      My Computer


  6. Posts : 68,673
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #6

    Andrew129260 said:
    Even though I set it to delete items in the download folder to 1 day and manually ran storage sense it does not seem to auto delete anything in the downloads folder, both on 10 and 11. I have files in my download folder from a month ago I have not touched.
    Hello Andrew,

    Odd. Could anything be updating or accessing the files in the Downloads folder? OneDrive?
      My Computers


  7. Posts : 197
    Windows 11 Home
       #7

    Brink said:
    Hello Andrew,

    Odd. Could anything be updating or accessing the files in the Downloads folder? OneDrive?
    Yeah I thought something like that might be the cause, but no. I am not using onedrive or any cloud storage. I double checked though to make sure nothing was touching my downloads folder.

    I heard rumors that a windows defender scan could mark it as recently accessed it causing this bug. Just really odd. I have seen this on a few machines now so I am starting to think its a windows bug/oversight. It would be a really handy feature for many people if it worked.
      My Computer


  8. Posts : 68,673
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #8

    Andrew129260 said:
    Yeah I thought something like that might be the cause, but no. I am not using onedrive or any cloud storage. I double checked though to make sure nothing was touching my downloads folder.

    I heard rumors that a windows defender scan could mark it as recently accessed it causing this bug. Just really odd. I have seen this on a few machines now so I am starting to think its a windows bug/oversight. It would be a really handy feature for many people if it worked.
    It sure seems like it. Be sure to send feedback via the Feedback Hub to Microsoft.
      My Computers


  9. Posts : 197
    Windows 11 Home
       #9

    Thanks will do.
      My Computer


 

Tutorial Categories

Specify Storage Sense Delete Files in Downloads Folder in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 11:00.
Find Us




Windows 10 Forums