Codex update doesn't cleanup older versions
Open 💬 2 comments Opened May 12, 2026 by mcimadamore
💡 Likely answer: A maintainer (etraut-openai, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex CLI is running?
0.130.0
What subscription do you have?
enterprise
Which model were you using?
gpt-5.5
What platform is your computer?
Linux 5.15.0-177-generic x86_64
What terminal emulator and version are you using (if applicable)?
_No response_
What issue are you seeing?
Running "codex update" successfully updates codex, but also leaves all releases in place. This means that on every update the local ".codex" folder gets ~250M bigger. There should at least be an option to select a different behavior, or perhaps the script could keep a fixed number of older versions in place?
What steps can reproduce the bug?
Uploaded thread: 019e1b63-9bd5-7903-a9e2-c145b7bea465
What is the expected behavior?
_No response_
Additional information
_No response_
2 Comments
How did you install codex? Did you use npm, homebrew, or some other technique?
Same thing for me. I used install.sh script. Lots of old packages in ~/.codex/packages/standalone/releases.