How to set up Storage Sense in Windows 11 to clean up automatically without deleting files you need
Storage Sense is the cleaner built into Windows 11. It clears temporary files, empties the Recycle Bin and, if you let it, removes old files from your Downloads folder. On many PCs it's switched off, and even when it's on, the standard setting only runs it when the drive is nearly full. This guide turns it on, puts it on a regular schedule, and sets the two options that decide whether it ever touches a file you still want.
What you'll need: A PC running Windows 11. If the PC is managed by your employer, some of these switches may be greyed out. See Troubleshooting.
Open Settings
Hold down the Windows key and press I. The Settings window opens with System already selected in the list down the left-hand side.
Click Storage
In the right-hand part of the window, scroll down the System page and click Storage. The page that opens shows a bar for your main drive, usually Local Disk (C:), with a breakdown of what's using the space.
Switch Storage Sense on
Below the drive breakdown is a section headed Storage management. The first row in it is Storage Sense, with a switch on the right. Click the switch so it reads On.
Open the Storage Sense options
Click anywhere on the Storage Sense row itself, not the switch, to open its own page. This is where all the settings live. Near the top, Automatic User content cleanup should now read On. If it reads Off, click that switch too. Everything from step 6 onwards depends on it.
Leave temporary file cleanup ticked
At the top of the page, under Cleanup of temporary files, there's a tick box reading Keep Windows running smoothly by automatically cleaning up temporary system and app files. Leave it ticked. This covers things like old update leftovers, thumbnail caches and app scratch files. It doesn't touch your documents, photos or anything you saved.
Set how often it runs
Scroll to Configure cleanup schedules. The first drop-down, Run Storage Sense, is usually set to During low free disk space, which means it does nothing until the drive is almost full. Change it to Every week or Every month. The other choice is Every day, which is more than most PCs need.
Choose when the Recycle Bin empties
The next drop-down is Delete files in my recycle bin if they have been there for over. The choices are Never, 1 day, 14 days, 30 days and 60 days. Anything in the Recycle Bin is something you already deleted, so 30 days gives you a month to change your mind before it's gone for good. Pick Never if you'd rather empty it yourself.
Set the Downloads option to Never
The third drop-down is Delete files in my Downloads folder if they haven't been opened for more than. This is the one that catches people out. Set it to Never. With any other value, Storage Sense removes files from Downloads that you haven't opened in that time, whether or not you meant to keep them.
Decide what happens to OneDrive files
The last section is Locally available cloud content, with a drop-down for each OneDrive account on the PC reading Content will become online-only if not opened for more than. This doesn't delete anything. It removes the local copy of files you haven't opened recently and leaves a placeholder that downloads again when you open it. Choose Never if you work offline or have a slow connection, or a period such as 30 days if you're short of space and usually online.
Variations
At the bottom of the Storage Sense page is a button labelled Run Storage Sense now. Click it and Windows runs a clean-up using the settings above, then reports how much space it freed. It's worth doing once after you've set the options, so you know what a scheduled run will do.
If your Downloads folder is where installers and one-off attachments go to die, set the Downloads drop-down in step 8 to 60 days rather than something shorter, and move anything you want to keep into Documents or another folder first. Files anywhere other than Downloads and the Recycle Bin are never touched.
Back on the Storage page, under Storage management, click Cleanup recommendations. Windows lists temporary files, large or unused files, files already synced to the cloud and unused apps, each with a tick box and the space it would free. Nothing is removed until you tick items and click Clean up. This is a one-off, so it suits people who'd rather see what's going before it goes.
Troubleshooting
Storage Sense has almost certainly been running with the Downloads option set to a number of days. Open the Recycle Bin from the desktop and look there first. If the files aren't in it, they can't be recovered from Windows itself. Check OneDrive's Recycle bin on the web if the folder was being backed up, or a File History or other backup if you have one. Then set the Downloads option to Never as in step 8 so it doesn't happen again.
On a PC managed by an employer or school, the setting can be locked by policy, and you'll usually see a line reading Some of these settings are managed by your organisation at the top of the page. Your IT team controls it. On a home PC, make sure you're signed in as an administrator: go to Settings › Accounts › Your info and look for the word Administrator under your name.
Storage Sense only clears temporary files, the Recycle Bin and whatever you allowed in Downloads. If the drive is full of videos, photos, games or old backups, it won't help. Go back to the Storage page and look at the breakdown bar: click any category, such as Apps & features or Temporary files, to see what's in it. Cleanup recommendations, under Variations, is the fastest route to the biggest files.
The Locally available cloud content setting from step 9 has made them online-only. The files are still in OneDrive and open as normal when you're connected. To keep a file or folder on the PC permanently, right-click it in File Explorer and choose Always keep on this device. Storage Sense leaves files marked that way alone.
Need a calculator rather than a guide? Try Simplicalcs →