Settings � Cache & Temp

You’ll rarely need this unless you are troubleshooting unexpected results or need to free disk space.

Manage analysis caches and temporary data.

What it controls

Discovery result caches and temporary analysis storage in .branchpy/cache/.

When to use

After large refactors, when troubleshooting stale analysis state, or to reclaim disk space.

CLI commands

There is no dedicated branchpy cache clear command in v1.1.1. To clear the cache, run Analyze with the --no-cache flag to bypass it for that run:

branchpy --project <path> analyze --no-cache

To fully purge cached data, delete the cache directory manually:

# Windows
Remove-Item -Recurse -Force <project-root>\.branchpy\cache\

# macOS / Linux
rm -rf <project-root>/.branchpy/cache/

BranchPy will recreate the cache directory on the next run.

  • Clear caches only after analysis finishes; avoid mid-run resets.
  • Use --no-cache in CI for deterministic runs.
  • The cache is safe to delete at any time without data loss; it only holds computed intermediates.

Learn more: Technical/deployment