Skip to content

feat(clean): add JetBrains IDE cache and log cleanup#654

Closed
sebastianbreguel wants to merge 1 commit intotw93:mainfrom
sebastianbreguel:feat/clean-jetbrains-caches
Closed

feat(clean): add JetBrains IDE cache and log cleanup#654
sebastianbreguel wants to merge 1 commit intotw93:mainfrom
sebastianbreguel:feat/clean-jetbrains-caches

Conversation

@sebastianbreguel
Copy link
Copy Markdown
Contributor

Summary

  • Add cleanup of JetBrains IDE caches (~/Library/Caches/JetBrains/*) and logs (~/Library/Logs/JetBrains/*)
  • Covers all JetBrains IDEs installed via Toolbox or standalone: DataGrip, IntelliJ, PyCharm, WebStorm, GoLand, CLion, Rider, PhpStorm
  • Complements existing clean_dev_jetbrains_toolbox which only removes old Toolbox versions

Why

JetBrains IDE caches can grow to several GB (1.8 GB observed with just DataGrip). These are safe to remove — the IDEs regenerate them on next launch. Currently mo clean handles Toolbox old versions but not the IDE caches themselves.

Safety Review

  • This change only adds new safe_clean targets for caches and logs.
  • No changes to path validation, protected directories, symlink handling, sudo boundaries, or release/install integrity.

Tests

  • ./scripts/check.sh passes (ShellCheck, syntax, optimizations 5/5).
  • ./scripts/test.sh passes.
  • Manual dry-run verification with mo clean --dry-run.

@sebastianbreguel sebastianbreguel requested a review from tw93 as a code owner March 28, 2026 16:26
@tw93
Copy link
Copy Markdown
Owner

tw93 commented Mar 30, 2026

@sebastianbreguel thanks for the PR. I landed a narrower follow-up on our side that keeps the JetBrains cleanup limited to logs only. Sweeping ~/Library/Caches/JetBrains/* is too risky because it can invalidate IDE indexes, so I am closing this version to keep the safer scope.

@tw93 tw93 closed this Mar 30, 2026
@sebastianbreguel sebastianbreguel deleted the feat/clean-jetbrains-caches branch April 1, 2026 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants