Remove a persisted Go env setting.
Section: Toolchains and Env
Unset persisted env value
bash
bash
go env -u GOPRIVATEExplanation
Remove a persisted Go env setting. Useful in Go CLI workflows.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Toolchains and Env
Allow auto toolchain selection
Let the go command choose a newer toolchain if needed.
Show V8 options through go tool
Pass through to tool-specific options when needed.
Print Go environment
Inspect Go environment variables and effective values.