Disk Cleanup is a convenient way to delete files you no longer need and free up hard disk space on your computer. Scheduling Disk Cleanup to run regularly can save you the trouble of having to remember to run it.
When you schedule Disk Cleanup, it will open and then wait for you to make choices before deleting files from your computer.
Open Task Scheduler by clicking the Start button , clicking Control Panel, clicking System and Maintenance, clicking Administrative Tools, and then double-clicking Task Scheduler.
If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
Click the Action menu, and then click Create Basic Task.
Type a name for the task and an optional description, and then click Next.
To select a schedule based on the calendar, click Daily, Weekly, Monthly, or One time, and then click Next.
Specify the schedule you want to use, and then click Next.
Click Start a program, and then click Next.
Click Browse, type cleanmgr.exe in the File name box, click Open, and then click Next.