How to uninstall Codex CLI? #34373
|
I installed running the command below, curl -fsSL https://chatgpt.com/codex/install.sh | shI'm on Arch Linux. |
Replies: 1 comment 3 replies
|
Because you used the standalone installer (rather than npm/pacman), remove the readlink -- "$HOME/.local/bin/codex"For the current package layout, that should print a path ending in rm -- "$HOME/.local/bin/codex"
rm -rf -- "$HOME/.codex/packages/standalone"
hash -rThen verify that no other Codex installation wins on command -v codex || echo "Codex CLI removed"The installer may also have added a marked block to # >>> Codex installer >>>
export PATH="/home/your-user/.local/bin:$PATH"
# <<< Codex installer <<<You can remove that three-line block only if you do not otherwise need I would leave the rest of The paths and profile markers come directly from the current |
Because you used the standalone installer (rather than npm/pacman), remove the
standalone symlink and its managed package directory. First, confirm that the
link is the one managed by this installer:
readlink -- "$HOME/.local/bin/codex"For the current package layout, that should print a path ending in
/.codex/packages/standalone/current/bin/codex(older layouts can end in/current/codex). If it points somewhere unrelated, stop and inspect thatinstallation instead. With the expected link, remove only the installer-owned
files:
Then verify that no other Codex installation wins on
PATH: