Go keeps downloaded modules in ~/go/pkg/mod and compiled build output in ~/Library/Caches/go-build. Both are caches. Go makes module files read-only, which is why dragging them to the Trash often fails; Go’s own clean commands remove them properly.
Location: ~/go/pkg/mod · ~/Library/Caches/go-build
What’s inside
- Downloaded module sources (read-only)
- Build cache of compiled packages
The Go way
go clean -modcache
go clean -cacheThe first removes downloaded modules, the second the build cache.

Find every folder like this on your Mac
Tidy Mac’s Space Map shows every big folder at its real size, and Apps › Leftovers finds folders left by apps you already deleted.
Frequently asked questions
Can I delete go/pkg/mod?
Safe: Your Mac or your apps recreate this automatically. Removing it won’t lose anything you made. Go keeps downloaded modules in ~/go/pkg/mod and compiled build output in ~/Library/Caches/go-build. Both are caches. Go makes module files read-only, which is why dragging them to the Trash often fails; Go’s own clean commands remove them properly.
Where is go/pkg/mod on my Mac?
~/go/pkg/mod · ~/Library/Caches/go-build. In Finder choose Go › Go to Folder and paste the path.
How big does go/pkg/mod get?
Usually 1 – 20 GB.