Windows · Storage & Backup
Automate Disk Cleanup with Storage Sense
Storage Sense automatically frees up disk space by deleting temporary files, emptying the Recycle Bin after a set number of days, and clearing out old files from your Downloads folder on a schedule you configure. Once set up, it runs quietly in the background so you don't have to remember to manually clean up disk clutter yourself.
How to open Storage Sense
- Open Settings → System → Storage → Storage Sense.
- Turn on Storage Sense and choose how often it runs automatically.
- Set retention periods for temporary files, Recycle Bin, and Downloads.
- Configure cloud content cleanup if you sync a large OneDrive library.
What you should know
- Turn Storage Sense on to enable automatic background cleanup, or run it immediately with 'Run Storage Sense now'.
- Set how often it runs automatically: during low disk space, or on a daily, weekly, or monthly schedule.
- Configure separate retention periods for temporary files, Recycle Bin contents, and the Downloads folder.
- Enable cloud content cleanup to make locally-synced OneDrive files that haven't been opened recently 'online-only' again to save local space.
By default, Storage Sense's Downloads folder cleanup can delete files that have simply been sitting there for a set number of days, regardless of whether you still need them, so review that specific setting carefully before enabling it.
Why it matters
Storage Sense automates exactly the kind of routine disk cleanup most people mean to do manually but rarely actually get around to, which is why drives quietly fill up with temp files and forgotten downloads over months of everyday use. Because it can also convert rarely-used OneDrive files back to cloud-only placeholders, it helps keep a smaller local drive from filling up even when you're syncing a much larger cloud library. Setting it up once and trusting it to run on schedule is a meaningfully better strategy than remembering to run Disk Cleanup manually every so often.
Best practices
- Set Downloads folder cleanup to a longer interval, like 60 days, or disable it entirely if you tend to leave important files sitting there.
- Enable automatic cloud content cleanup if you sync a large OneDrive library to a smaller local drive, so local space doesn't fill up with rarely-used files.
- Run Storage Sense manually right after a big Windows feature update to quickly reclaim space from leftover update files.
- Review what Storage Sense actually cleared the first few times it runs automatically, so you understand its behavior before trusting it fully unattended.
- Pair Storage Sense's ongoing automatic cleanup with an occasional manual check of 'Cleanup recommendations' for larger one-off files it doesn't target.
Common problems and fixes
- An important file recently placed in Downloads was unexpectedly deleted.
- Check the configured retention period under Storage Sense's Downloads folder setting and lengthen it or turn that specific rule off, since it deletes based on file age regardless of importance.
- Storage Sense doesn't seem to free up as much space as expected.
- Confirm it's actually scheduled to run automatically rather than only manually, and check that cloud content cleanup is enabled if a large synced OneDrive library is part of the problem.
- OneDrive files keep becoming 'online-only' sooner than you'd like.
- Increase or disable the 'free up space by making files online-only if not opened for over X days' setting under Storage Sense's cloud content section.
Tips and tricks
- Click 'Run Storage Sense now' immediately after a major feature update to reclaim space from leftover installation files right away instead of waiting for the next scheduled run.
- Set a longer Recycle Bin retention period if you routinely realize you need a deleted file back a few weeks later.
Frequently asked questions
Can I recover a file Storage Sense deleted from the Recycle Bin?
Only if it hasn't yet passed your configured retention period and you catch it before Storage Sense's next scheduled run — once permanently removed from the Recycle Bin, it typically requires third-party data recovery software.
Does Storage Sense delete files from OneDrive itself, or just the local copy?
It only changes rarely-used synced files to online-only locally, freeing local disk space while keeping the actual files safely stored in the cloud.
Is Storage Sense the same tool as the older Disk Cleanup utility?
They overlap in purpose, but Storage Sense runs automatically on a schedule and integrates with OneDrive, while Disk Cleanup is a manual, one-time tool without OneDrive-aware cloud content management.
Related settings
- Storage SettingsStorage Settings let you view how much disk space is being used by apps, system files, temporary files, and media. You can free up space automatically using Storage Sense or manually remove unwanted files.
- File HistoryFile History is a legacy Control Panel backup tool that continuously copies versions of files in your libraries, desktop, contacts, and favorites to an external drive or network location. Unlike a single backup snapshot, it keeps multiple versions over time, letting you restore not just a deleted file but an earlier version of one you've since changed.
- BackupWindows Backup uses OneDrive to continuously back up your Desktop, Documents, and Pictures folders, along with your list of installed apps, saved Wi-Fi network passwords, and select personalization settings like your theme and wallpaper. It's designed to make restoring your setup on a new PC, or after a reset, far less painful than starting from scratch.
More Storage & Backup guides for Windows
- OneDrive Sync SettingsConfigures how OneDrive syncs files between this PC and the cloud, including which folders sync, Files On-Demand behavior, and bandwidth limits for uploads and downloads.
- Disk CleanupScans your drive for temporary files, system caches, old Windows update files, and other reclaimable data, then lets you safely delete them to free up disk space.
- Storage SpacesLets you combine multiple physical drives into a single resilient storage pool, protecting against individual drive failure or expanding usable capacity across devices.
- Removable Storage AccessManages how Windows handles removable storage devices like USB drives and SD cards, including connection notifications, battery usage behavior, and transfer settings.
- Default Save LocationsLets you set the default drive for new apps, documents, music, pictures, and videos, which is especially useful when a PC has both a small system drive and a larger secondary drive.
- Manage Disks and VolumesProvides a modern interface to view all connected physical disks and their volumes, letting you create, resize, format, or delete partitions without opening the legacy Disk Management console.