Windows 11 and 10 come with a feature called Storage Sense that automatically deletes temporary files. Storage Sense clears most temp files every few days without you having to do anything. From the System Storage screen (as shown in Step 3 above), toggle on Storage Sense.