Files
unlimitedcoding/claude/uclaude_uninstall.sh
delta-cloud-208e b8c990c00c URGENT FIX: uninstall preserves user data by default (was destructive)
User reported losing 6 months of accumulated work — projects, plans,
custom commands/skills, file-history, history.jsonl — because
uclaude_uninstall.sh did `rm -rf ~/.claude` without warning or backup.

Same destruction risk in codex/gemini/qwen uninstallers (each has its
own ~/.tool-name/ dir with user data).

Fix:
- claude/uclaude_uninstall.sh: DEFAULT preserves projects/, history.jsonl,
  commands/, plans/, file-history/, plugins/. Only removes settings.json
  + cache/ (which Claude regenerates). settings.json backed up first.
- Explicit opt-in to wipe everything: UCLAUDE_PURGE_USER_DATA=1
  (and even then creates a tar backup before delete)
- README guidance updated

NEVER again should an uninstaller silently destroy user data.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-26 06:43:30 +00:00

5.4 KiB
Executable File