What it is
Bazel's output base: build outputs, the action cache and downloaded external repositories.
Can you delete it?
Yes, it is rebuilt automatically. Bazel rebuilds everything on the next build, which can take a long time on big projects.
How to clean it safely
- Run:
bazel clean --expunge - Run it inside each workspace, or delete the folder when no Bazel build is running.
Step-by-step guide: Developer caches on a Mac →
Related folders
- Coursier cache (Scala) ·
~/Library/Caches/Coursier - Flutter SDK cache ·
<flutter sdk>/bin/cache - Yarn cache ·
~/Library/Caches/Yarn - pnpm store ·
~/Library/pnpm/store - npm cache ·
~/.npm - Bazelisk downloads ·
~/Library/Caches/bazelisk
Questions
Is it safe to delete /private/var/tmp/_bazel_<user>?
Yes, it is rebuilt automatically. Bazel rebuilds everything on the next build, which can take a long time on big projects.
Let the raccoon do it, safely
Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.
Download for Mac