How to Stop Windows 11 from Automatically Deleting Temporary Files

The Aggressive Janitor

Windows 11 includes a feature called Storage Sense, designed to act as an automated janitor for your hard drive. When your disk space runs low, or on a scheduled cadence, Storage Sense will automatically run in the background and silently delete files it considers unimportant. This often includes everything inside your “Downloads” folder that hasn’t been opened recently, as well as temporary cache files. While this keeps your SSD from filling up with junk, it can be disastrous if you use your Downloads folder as a long-term archive for installers, PDF receipts, or old project assets, as Windows will permanently delete them without asking for confirmation.

Configuring Storage Sense

To protect your archived downloads and stop Windows 11 from automatically deleting your temporary files and old documents, you must reconfigure or completely disable the Storage Sense utility.

Press the Windows key + I to open the Settings app. In the left-hand navigation sidebar, click on System, and then select Storage in the main panel. At the top of the Storage screen, you will see a toggle switch for Storage Sense. If you want to stop all automatic deletions entirely, simply flip this toggle to the Off position. However, if you only want to protect your Downloads folder while letting Windows clean up actual system cache, click the arrow next to the toggle to open the advanced configuration. Scroll down to the section labelled “Locally available cloud content” and “Temporary files.” Look for the dropdown menu that says Delete files in my Downloads folder if they haven’t been opened for more than: and change this setting to Never. Windows will now leave your downloaded files alone permanently.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.