Help · Mac apps

How to uninstall Go on a Mac.

Go's documentation describes removing Go by hand: delete its folder and the path file the Mac installer added.

Uninstall Go

  1. Optional: clear Go's caches first, while Go still works: go clean -cache and go clean -modcache.
  2. In Finder, press ⇧⌘G, go to /usr/local and move the go folder to the Trash (enter your password).
  3. If you used the Mac installer package, also remove /etc/paths.d/go the same way.
  4. Remove any line you added to your shell profile for $HOME/go/bin, then open a new Terminal window.

Programs you installed with go install are in ~/go/bin by default; delete that folder too if you don't need them.

Afterwards

More developer tools: clearing developer caches, Docker and Homebrew.

Based on Go's own documentation (go.dev), checked October 2026. Menu names can change between versions.

Then check for anything Go left behind.

Once the app is gone, Pangalin Uninstaller's free Leftovers scan lists files left behind by apps that are no longer installed, by name and size. Apple's files are never included. It also shows where each one is and moves the ones you choose to the Trash in one go, with Undo. It's free.

Completely free · No account · Notarised by Apple · Apple silicon, macOS 13 or later