A Linux terminal showing the successful execution of the 'go clean -modcache' command, reclaiming disk space.

What Is the ~/go Folder & Is It Safe to Delete?

Discovered a mysterious ‘go’ directory in your Linux home folder? This guide explains what the Go module cache is, why tools like Hugo create it, and how to safely clean it with go clean -modcache to reclaim disk space.

November 2, 2025 · 8 min · Murat Kurkoglu