Safe to Delete

Bun JavaScript Package Cache (~/.bun/install/cache)

Quick Answer: The Bun install cache stores downloaded npm tarballs and binary packages. Clearing it is safe and frees disk space.

Bottom Line: It is 100% safe to clear the Bun package cache. Bun caches npm package tarballs locally to speed up future bun install commands.


What is the Bun Install Cache?

Located at ~/.bun/install/cache (or %LocalAppData%\Bun\install\cache on Windows), Bun caches downloaded npm packages when running bun add or bun install.


Can You Delete the Bun Cache?

✅ Yes, safe to delete.

  • No project breakage: Existing node_modules folders in your code projects will remain untouched.

How to Clean Up Bun Cache

bun pm cache rm

Discussion

Loading authentication...

Related in developer

The AI Engineer's Model Disk Cleanup Guide: Hugging Face, Ollama & PyTorch

The ultimate 1,200-word field guide for AI developers and local LLM hobbyists to reclaim 200GB+ from Ollama, Hugging Face, PyTorch, and vLLM model weights.

Safe to Delete

Android Studio System Index Cache (AndroidStudio Cache)

Android Studio caches Gradle project indexes, VFS caches, and compiler artifacts. Invalidate and clear is safe.

Safe to Delete

Ansible Automation Temp & Fact Cache (~/.ansible/tmp)

Ansible stores temporary playbook execution modules and target host fact JSON caches in ~/.ansible/tmp. Clearing Ansible tmp is safe.

Safe to Delete
Back to all files