Please follow the steps;
1st step:
Define a disk cleanup profile.
e.g.
cleanmgr /sagerset:1
2nd step:
Run task scheduler
taskschd.msc
3rd step:
Define a task schedule as designed profile by importing "cleanmgr /sagerun:1" to Actions
e.g.
task generates first-day of each month at 01:00 pm
1st step:
Define a disk cleanup profile.
e.g.
cleanmgr /sagerset:1
2nd step:
Run task scheduler
taskschd.msc
3rd step:
Define a task schedule as designed profile by importing "cleanmgr /sagerun:1" to Actions
e.g.
task generates first-day of each month at 01:00 pm