Windows 10 has an automatic disk cleaning service that you can enable in Settings > System > Storage > "Turn on Storage sense." The feature auto-scans for temporary files when you're low on disk space along with removing local copies of OneDrive files and making them online-only after not being used for 30 days.
You can perform that scan manually by clicking "Free up space now" on the Storage Sense settings page and the utility will delete the following data:
Temporary setup files
Old indexed content
System cache files
Internet cache files
Device Driver packages
System downloaded program files
Dated system log files
System error memory dump files
System error minidump files
Temporary system files
Dated Windows update temporary files
Comments