In Windows 10, you can now use the Settings app to remove temporary files manually or automatically starting with version 1803.
To manually remove temporary files in Windows 10 using Settings, do the following:
Open Settings > System > Storage
Under Storage sense, click on Change how we free up space
Make sure the “Delete temporary files that my apps aren’t using‘ is on but only have “Delete files that have been in the recycle bin for over 30 days” if you are sure this is what you want! Then click on Clean now
Once you completed the steps, those files you selected will be permanently deleted from your computer freeing up space for more valuable files.