go/clean

Clean Build Artifacts

Remove build artifacts

go
clean
cache

Command

go clean -cache

Explanation

Remove build artifacts, caches, and temporary files to free up disk space.

Examples

Clean build cache

go clean -cache

Clean module cache

go clean -modcache

Clean test cache

go clean -testcache