Google Drive File Stream cache not cleaning up

Solution 1:

On macOS, execute the following command: sudo defaults write /Library/Preferences/com.google.drivefs.settings ContentCacheMaxKbytes -int 100000

On Windows, save the following content to a file called google.reg and execute it, or alternatively, add the registry key yourself (QWORD, decimal value 100000).

Windows Registry Editor Version 5.00    
[HKEY_LOCAL_MACHINE\SOFTWARE\Google\DriveFS]
"ContentCacheMaxKbytes"=hex(b):a0,86,01,00,00,00,00,00

This will cause Drive File Stream to delete the cache once it hits 100mb. By default, Google selects a high value to decrease access to its cloud.

Reference: https://support.google.com/a/answer/7644837?hl=en