# Is it safe to delete the Go build cache on Mac?

- URL: https://moreroom.app/folders/go-buildcache
- Item: Go build cache
- Location: `~/Library/Caches/go-build`
- Verdict: Safe to remove — Rebuilt or re-downloaded automatically when needed.
- Comes back on its own: yes
- Official command: `go clean -cache`
- Source: MoreRoom rules catalogue (2026-10-17), by Yando Pte. Ltd.

## What is it?

The Go command stores compiled packages and test results in `~/Library/Caches/go-build` so that unchanged code is not rebuilt. It periodically deletes entries that have not been used recently on its own, but it can still reach a few gigabytes.

## What happens if you delete it?

Go rebuilds what it needs on the next build or test run, so those runs are slower once. No source code or modules are affected.

## How to remove it properly

Run `go clean -cache` in Terminal, the official command, which deletes the cache permanently; `go env GOCACHE` shows its location.
