[Feature Request] Implement automatic cleanup of old Claude versions during updates

Status Closed — not planned
Maintainer reply None cached
Activity 6 comments · opened Dec 21, 2025 · closed Mar 26, 2026

Bug Description
Claude installs seem to be keep all previous versions on my system when updating? There is current 6 previous versions just sitting in ~/.local/share/claude/versions taking up about 1GB of space?

Environment Info

  • Platform: linux
  • Terminal: ghostty
  • Version: 2.0.72
  • Feedback ID: 63379d89-00fb-4dbf-b31b-fa8a94cd4daf
> ls -lah ~/.local/share/claude/versions
  ⎿  total 1.2G
     drwxrwxr-x 2 4.0K Dec 21 15:05 .
     drwxrwxr-x 3 4.0K Jul 31 21:45 ..
     -rwxr-xr-x 1 134M Jul 31 23:33 1.0.65
     -rwxr-xr-x 1 202M Dec  4 22:47 2.0.58
     -rwxr-xr-x 1 196M Dec 11 19:41 2.0.65
     -rwxr-xr-x 1 198M Dec 13 14:55 2.0.69
     -rw------- 1 0    Dec 16 00:17 2.0.70
     -rwxr-xr-x 1 214M Dec 17 14:38 2.0.71
     -rwxr-xr-x 1 215M Dec 18 01:19 2.0.72
> du -hs ~/.local/share/claude/versions
  ⎿  1.2G       .local/share/claude/versions

View original on GitHub ↗

6 Comments

github-actions[bot] · 8 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

gerrywastaken · 8 months ago

Still seems to be happening:

> ls -lah --no-user ~/.local/share/claude/versions/
Permissions Size Date Modified Name
.rwxr-xr-x  220M 22 Jan 20:07  2.1.16
.rwxr-xr-x  223M 23 Jan 00:54  2.1.17
.rwxr-xr-x  223M 24 Jan 21:49  2.1.19
szepix · 7 months ago

still happening:
ls -lahg ~/.local/share/claude/versions/
total 1094064
drwxr-xr-x@ 5 staff 160B Feb 26 11:25 .
drwxr-xr-x@ 3 staff 96B Feb 22 19:26 ..
-rwxr-xr-x@ 1 staff 178M Feb 25 07:00 2.1.55
-rwxr-xr-x@ 1 staff 178M Feb 25 07:28 2.1.56
-rwxr-xr-x@ 1 staff 178M Feb 26 10:44 2.1.59

github-actions[bot] · 6 months ago

Closing for now — inactive for too long. Please open a new issue if this is still relevant.

gerrywastaken · 6 months ago

This was Auto-closed even thought it is still happening. :/

github-actions[bot] · 6 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.