Date: 2024jun6
Q. Visual Studio: Reduce disk space used
A. The default size of the Automatic Precompiled headers Cache is 5GB.
You can manually delete the "AutoPCH" folder periodically - with no problem -
to reclaim space.
Or, change the setting for its size in
Tools > Options > Text Editor > C/C+ > Advanced > Automatic Precompiled Header Cache Quota
I changed mine to 2048 (2GB) and everything seems to work fine.
Note: This is per-solution. In other words,
if you have 10 solutions that's 10 * 5GB = 50GB by default.