Specify when Storage Sense Delete Files in Recycle Bin in Windows 10  

    Specify when Storage Sense Delete Files in Recycle Bin in Windows 10

    Specify when Storage Sense Delete Files in Recycle Bin in Windows 10

    How to Specify when Storage Sense Delete Files in Recycle Bin in Windows 10
    Published by Category: Performance & Maintenance
    11 Jul 2020
    Designer Media Ltd

    How to Specify when Storage Sense Delete Files in Recycle Bin 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 Recycle Bin 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 recycle bin for all users.

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


    Contents

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






    OPTION ONE

    Specify when Storage Sense Delete Files in Recycle Bin 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 when Storage Sense Delete Files in Recycle Bin in Windows 10-storage_sense_recycle_bin_settings-1.jpg

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

    Specify when Storage Sense Delete Files in Recycle Bin in Windows 10-storage_sense_recycle_bin_settings-2.png

    4 You can now close Settings if you like.






    OPTION TWO

    Specify when Storage Sense Delete Files in Recycle Bin 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

    08 DWORD

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

    256 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 recycle bin

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

    Storage_Sense_delete_files_in_Recycle_Bin_Never_for_current_user.reg

    Download


     3. Specify Storage Sense to delete files in recycle bin 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_Recycle_Bin_over_1_day_for_current_user.reg

    Download


     4. Specify Storage Sense to delete files in recycle bin 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_Recycle_Bin_over_14_days_for_current_user.reg

    Download


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

    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_Recycle_Bin_over_30_days_for_current_user.reg

    Download


     6. Specify Storage Sense to delete files in recycle bin 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_Recycle_Bin_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 Recycle Bin 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 when Storage Sense Delete Files in Recycle Bin in Windows 10-storage_sense_recycle_bin_gpedit-1.jpg

    3 In the right pane of Storage Sense in Local Group Policy Editor, double click/tap on the Configure Storage Recycle Bin 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 Recycle Bin

    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 Recycle Bin

    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 when Storage Sense Delete Files in Recycle Bin in Windows 10-storage_sense_recycle_bin_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 Recycle Bin 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 when Storage Sense Delete Files in Recycle Bin in Windows 10-storage_sense_recycle_bin_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 Recycle Bin

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

    If you do not have a ConfigStorageSenseRecycleBinCleanupThreshold 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 ConfigStorageSenseRecycleBinCleanupThreshold 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 when Storage Sense Delete Files in Recycle Bin in Windows 10-storage_sense_recycle_bin_regedit-2.png


     5. Default User Choice for when Storage Sense Delete Files in Recycle Bin

    A) In the right pane of the StorageSense key, right click on the ConfigStorageSenseRecycleBinCleanupThreshold 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 when Storage Sense Delete Files in Recycle Bin in Windows 10-storage_sense_recycle_bin_regedit-3.png

    6 You can now close Registry Editor if you like.


    That's it,
    Shawn






  1. Posts : 181
    Windows 10 Pro x64
       #1

    ... there is only one problem: it never worked. You can set to delete recycle bin files to whatever you want (e.g. 14 days) and everything correctly set (including of course Sensor On), and it won't delete anything. You'll still find very old files in the recycle bin Try yourself...
    I started to notice this on 1903 and now on 2004 is still unfixed. It's a very old bug (e.g. https://answers.microsoft.com/en-us/...c-1dc13810fa67 ) never fixed by Microsoft.

    I'm afraid it deletes older files only when disk space is low despite what you set as a maximum time range for deletion.
    Last edited by hexaae; 12 Jul 2020 at 02:57.
      My Computer


 

Tutorial Categories

Specify when Storage Sense Delete Files in Recycle Bin 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:21.
Find Us




Windows 10 Forums