How to clear Google Drive cache

Google Drive logo
Google Drive logo

Background

I installed the Google Drive desktop app in order to sync files between my computer and the cloud.

  • Online only (default)
Drive File Stream options

Clear cache directory

To remove all files from your computer cache, you can delete the Drive File Stream cache.

Drive File Stream settings
Drive File Stream preferences
rm -rf ~/Library/Application\ Support/Google/DriveFS/

Clear cache content directory

To clear cache without deleting credentials, you can delete just the cache content directory:

rm -rf ~/Library/Application\ Support/Google/DriveFS/[0-9]*
$ cd ~/Library/Application\ Support/Google/DriveFS/
$ du -sh *
224M 114104707028901901726
4.0K Crashpad
4.7M Logs
20M Resources
12K account_db_sqlite.db
512K cef_cache
4.0K pid.txt
4.0K signin
$ rm -rf [0-9]*
$ du -sh *
4.0K Crashpad
4.7M Logs
20M Resources
12K account_db_sqlite.db
512K cef_cache
4.0K pid.txt
4.0K signin
Move DriveFS cache directory to Trash

Resources

See Uninstall Drive File Stream > Step 3: Clear files cached on your computer.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store