GoLand tip of the day: clean up GoLand leftover cache and log folders

Submitted by Frederic Marand on Sat, 2018-12-08 17:10

When GoLand is upgraded from one version to the next, the deployment process adds a new set of configuration, cache, and log directories. But it does not remove the versions associated to the previous versions of the IDE, to ease rolling back to the previous version if an upgrade happens to cause an issue.

So after some time, removing these now-unused folders will regain some disk space, possibly more than 1 GB. Here are their respective locations and content on macOS:

Role Size indication Configuration variable Default location
Configuration 3 to 10 MB idea.config.path
  • ~/Library/Preferences/Gogland1.0
  • ~/Library/Preferences/Goland.(version)
Plugins 50 to 100 MB idea.plugins.path
  • ~/Library/Application Support/Gogland1.0
  • ~/Library/Application Support/GoLand-EAP
  • ~/Library/Application Support/GoLand
  • ~/Library/Application Support/GoLand.(version)
Caches 200 MB or (much) more idea.system.path
  • ~/Library/Caches/Gogland1.0
  • ~/Library/Caches/GoLand2018.(version)
Logs 1 to 10 MB idea.log.path
  • ~/Library/Logs/Gogland1.0
  • ~/Library/Logs/GoLand2018.(version)

On Windows and Linux, lookup the location using the name of the configuration variable in the third column.

Notice that the Toolbox app uses similar locations