This is detailed instructions on how to clear the NVidia Direct X cache:
Disable Cache: Open NVIDIA Control Panel > Manage 3D Settings > Shader Cache Size, set to Disabled, and click Apply.
Delete Cache Files (Method 1 - Direct):
Press Windows Key + R, type %localappdata%, and hit Enter.
Navigate to the NVIDIA folder.
Delete all files within DXCache and GLCache.
Note: Skip files currently in use.
Delete Cache Files (Method 2 - Alternative Location):
Go to %USERPROFILE%\AppData\Local\NVIDIA Corporation\NV_Cache and delete its contents.
Clear DirectX Cache: Open Start, search for Disk Cleanup, select the C: drive, check DirectX Shader Cache, and click OK.
Re-enable Cache: Return to NVIDIA Control Panel > Shader Cache Size, set it to Driver Default or a specific size (e.g., 10GB or Unlimited). I picked unlimited
Update drivers (if applicable)
Restart PC: Restart your computer to start building new, clean shaders.