go-remove is a command-line tool for removing Go binaries from standard binary directories (GOROOT/bin, GOBIN, or GOPATH/bin).
It supports both direct removal of a specified binary and an interactive TUI (Terminal User Interface) mode for selecting binaries to delete.
- Direct Removal: Remove a specific binary by name.
- Interactive TUI: Browse and select binaries to remove from a grid interface.
- Sorting in TUI: Toggle ascending/descending alphabetical order with the
skey. - Verbose Logging: Optional detailed output for debugging or confirmation.
- Platform Support: Handles Windows
.exeextensions and cross-platform paths.
Install go-remove using Go:
go install github.com/nicholas-fedor/go-remove@latestThis places the go-remove binary in your $GOPATH/bin (e.g., ~/go/bin/).
Remove a specific binary:
go-remove vhsWith verbose output:
go-remove -v vhsTarget GOROOT/bin instead of GOBIN or GOPATH/bin:
go-remove --goroot vhsLaunch the interactive TUI to select binaries:
go-remove- Use arrow keys (
↑/↓/←/→) ork/j/h/lto navigate. - Press
Enterto remove the selected binary. - Press
sto toggle sort order (ascending/descending alphabetical). - Press
qorCtrl+Cto quit.
View available options:
go-remove -hClone the repository and build:
git clone https://github.com/nicholas-fedor/go-remove.git
cd go-remove
go build -o go-remove ./cmdRun locally:
./go-remove- Go 1.16 or later (for module support).
This project is licensed under the GNU Affero General Public License v3 — see the LICENSE file for details.
Contributions are welcome! Please submit issues or pull requests on GitHub.
Special thanks to Maria Letta for providing an awesome collection of Go gophers.