Temporary files accumulate over time in Windows, including browser cache, update leftovers, log files, and other clutter. While they are harmless, they consume valuable disk space and affect system performance. Regularly cleaning them helps maintain smooth performance. The good news is, instead of manually cleaning temp files, you can set up automatic weekly cleanups using Task Scheduler or Wise Disk Cleaner. This guide will walk you through setting it up.
Method 1. Schedule Temp Cleaning in Task Scheduler
Step 1. Open Task Scheduler
Press Win + S on your keyboard, type Task Scheduler, and press the Enter key.

Step 2. Create a Basic Task
- On the right-side pane, click Create Basic Task....
- Name it something like Clear Temp Files Weekly.
- Click Next to continue.

Step 3. Set the Trigger
Choose Weekly as the trigger, and click Next.

Step 4. Set the Time
Select the day and time in the Weekly tab, and click Next.

Step 5. Set the Action
Select Start a Program, and click Next.

Step 6. Start the Program
- In the Program/script box field, paste:
cleanmgr.exe
- In the Add arguments box, paste:
/autoclean
- Click Next to let the command automatically deletes all temporary files for your user account.

Step 7. Finish
Review the settings again and click on Finish.

Task Scheduler is ideal if you prefer built-in Windows tools and just need basic temp file cleanup. In case you want deeper cleaning options, a friendlier interface, and more control over what gets deleted, you can try another excellent solution – Wise Disk Cleaner.
Method 2. Use Wise Disk Cleaner to Auto Delete Temp Files within 2 Steps

Step 1. Download and Install
Download the software from its website, then follow the on-screen prompts to finish the installation.
Step 2. Enable Auto Clean
Choose Weekly and set your preferred Date and Time under the AutoClean section on the right-hand pane. Then switch the toggle of AutoClean to ON.
Final Thoughts
Regular temp file cleanup helps free disk space and keeps Windows running smoothly. Whether you use Task Scheduler or Wise Disk Cleaner, setting up weekly automation ensures your system stays optimized without lifting a finger.