Table of Contents
For routine Windows cleanup, start with Storage Sense and review what it is allowed to remove. If you need a separate Disk Cleanup schedule, save the cleanup choices with /sageset and run them with /sagerun. Scheduling /sageset itself only reopens the configuration dialog.
Configure Storage Sense
- Open Settings > System > Storage.
- Open Storage Sense and review the available cleanup categories before enabling automatic runs.
- Choose a frequency that fits how quickly your drive fills.
- Check the Recycle Bin and Downloads rules individually. Keep automatic Downloads deletion off if you store important files there.
Cloud-content settings can make eligible local copies online-only. That is different from deleting the cloud file, but you will need a connection to download it again. Keep files you need offline explicitly available and check your provider’s behavior.
After reviewing the rules, use Run Storage Sense now if offered. Inspect the result before depending on the recurring schedule. Storage Sense is not a substitute for a backup.



Schedule Disk Cleanup with a saved profile
Use this optional method when Disk Cleanup offers categories you specifically want to schedule. Avoid setting up overlapping jobs without a reason.
- Open Command Prompt and run
cleanmgr /sageset:1. - Read the description of each category, select only what you intend to remove, and save the profile with OK.
- Open Task Scheduler and choose Create Task.
- Give it a recognizable name and add a weekly or monthly trigger.
- Under Actions, choose Start a program. Enter
cleanmgr.exein Program/script and/sagerun:1in Add arguments. - Review the account, power and missed-run conditions, then save the task.
The number must match: profile 1 is configured with /sageset:1 and executed with /sagerun:1. The screenshots show the configuration screens; use the run argument above for the scheduled action.
Test the task manually after saving it. Check its history and the selected cleanup categories if nothing happens. To change the selection later, run the matching sageset command again; to stop the automation, disable the task in Task Scheduler.





Automatic Maintenance is a separate feature
Open Control Panel > System and Security > Security and Maintenance, expand Maintenance and review its settings if you want to adjust the maintenance time.
This schedules broader Windows maintenance, not an arbitrary list of files for deletion. Do not assume maintenance runs while the computer is fully shut down. Power state, wake permissions and task conditions affect whether scheduled work can run.


Do you need another cleaner?
For basic temporary-file cleanup, the built-in tools are usually a sensible first step. Third-party tools add their own rules, exclusions and scheduling behavior, which you should inspect before allowing unattended deletion. Do not select every category simply because it is available.
Use the storage management guide to identify what actually occupies space. For the folder most likely to contain files you still need, follow the Downloads cleanup checklist before automating deletion.
Reader Comments 0
Sign in with email or Google to join the discussion.