When is a Windows User's Temp directory cleaned out? [duplicate]

Windows never automatically cleans the %TEMP% directory by default. In Windows 10 you have to enable this feature in Settings, and with earlier versions you must delete the files yourself or use programs like Disk Cleanup or cCleaner.

Developers using temporary files are expected to clean up after themselves.