All Ecosystems
go

Go

Clean Go module cache, build artifacts, and vendor directories. Reclaim space from your Go development environment.

Avg. Space Saved

100MB - 1GB per project

Detection Files

2 files

Artifact Types

3 types

Cleanable Artifacts

Cluttered can safely clean these Go build artifacts:

vendor/bin/pkg/

Project Detection

Cluttered identifies Go projects by looking for these files:

go.modgo.sum

Overview

Go's module system and fast compilation are great for development, but the module cache and vendor directories can grow significantly over time, especially if you work on multiple projects.

What Cluttered Cleans

ArtifactDescriptionTypical Size
vendor/Vendored dependencies50MB - 500MB
Local bin/Compiled binaries10MB - 100MB
pkg/Compiled packages20MB - 200MB

Go Module Cache

The Go module cache (~/go/pkg/mod) is shared across all projects. Cluttered can help you:

  • Identify modules not used by any current project
  • Find outdated versions of modules
  • Clean test and build caches

Why Go Artifacts Grow

  • Vendored dependencies: Full copies in each project
  • Multiple module versions: Different projects use different versions
  • Cross-compilation: Builds for multiple OS/arch combinations
  • CGO dependencies: C libraries compiled for Go

Safety Considerations

Cluttered protects your Go projects by:

  • Never cleaning go.mod or go.sum files
  • Detecting running go build or go test processes
  • Checking for recent file modifications
  • Preserving actively developed modules

Cleaning Commands Comparison

ActionGo CommandCluttered
Clean build cachego clean -cacheVisual selection
Clean test cachego clean -testcacheVisual selection
Clean module cachego clean -modcacheSmart cleanup
Clean vendorManualOne-click

Frequently Asked Questions

Will cleaning vendor/ break my build?

Only if you're in an air-gapped environment. Run go mod vendor to restore.

What about the global module cache?

Cluttered Pro can analyze and clean the global ~/go/pkg/mod cache, showing which modules are unused.

Does it affect my GOPATH?

Cluttered focuses on module-based projects. Legacy GOPATH setups are detected but handled carefully.

  • Rust - Similar compiled language with large build artifacts
  • Docker - Go is popular for building minimal containers

Ready to clean your Go projects?

Download Cluttered and reclaim your disk space in minutes.