Command
go clean -cacheExplanation
Remove build artifacts, caches, and temporary files to free up disk space.
Examples
Clean build cache
go clean -cacheClean module cache
go clean -modcacheClean test cache
go clean -testcachego clean -cacheRemove build artifacts, caches, and temporary files to free up disk space.
Clean build cache
go clean -cacheClean module cache
go clean -modcacheClean test cache
go clean -testcache