To set it up on your Windows machine, go toSettings > System > Storage.
Youll see more information about large files or folders on the right pane of the window.
UnderRun Storage Sense, select when you want to automatically clean up your system.
Another useful option isDelete files in my Downloads folder if they havent been opened for more than.
Youll just need administrator privileges on your account for it to work.
PressWindows Key + Xand selectWindows Powershell (Admin)from the menu.
When youve selected the files you need, clickOKand terminate the Powershell window.
Use the search box in Windows to openTask Scheduleron your gear and go toAction > Create Basic Task.
When the schedule is decided, youll reach the Action tab.
Now Disk Cleanup will automatically remove the specified files according to the schedule you set up.
This has been pre-configured to remove all files older than 60 days from the Downloads folder on your rig.
you could replace YOURUSERNAME with your accounts username, and youre good to go.
Thats the part that reads C:\Users\YOURUSERNAME\Downloads.
you might open any folder in Windows Explorer and copy its path from the address bar.
The-sbit in the command asks your automation to also consider sub-folders within the Downloads folder when its deleting files.
you might remove this if you dont want to delete anything in sub-folders.
The most interesting part is the-m *.
*parameter, which lets you select specific file types from the folder.
Note that leaving *.
- in the command asks it to remove all files from the folder.