To delete files that are older than a certain number of days in a “custom” folder location such as your Documents folder, you need to use one of these three methods: How to Auto Delete Files Older than N Days in Windows However, Disk Cleanup and Storage settings target only the %temp% and Downloads folders. Also, the Disk Cleanup tool clears up files in the %temp% directory that haven’t been accessed in the last 7 days.