---
id: mac-storage-basics.how-do-i-clean-pnpm-and-bun-caches
url: https://storagestudio.us/faq/mac-storage-basics/how-do-i-clean-pnpm-and-bun-caches
category: "Mac storage basics"
subcategory: "Programming languages and toolchains"
question: "How do I clean the pnpm store and Bun cache on a Mac?"
alt_questions:
  - "pnpm store prune"
  - "pnpm store size"
  - "bun cache clear"
  - "bun pm cache rm"
  - "javascript package manager cache mac"
  - "pnpm disk space"
short_answer: "Run pnpm store prune to drop unreferenced packages and bun pm cache rm to clear Bun's cache. Packages re-download on the next install."
tags: ["pnpm", "bun", "developer"]
related: ["https://storagestudio.us/faq/mac-storage-basics/how-do-i-clean-npm-yarn-and-pip-caches", "https://storagestudio.us/faq/mac-storage-basics/how-do-i-clean-up-node-modules-folders"]
applies_to: "all"
last_reviewed: 2026-10-01
---

# How do I clean the pnpm store and Bun cache on a Mac?

Both keep a shared store of packages so installs are fast:

- **pnpm**: `pnpm store prune` removes packages no project references any more.
- **Bun**: `bun pm cache rm` clears Bun's global cache.

The next install re-downloads what's needed, so the only cost is a slower first install. npm, Yarn and pip are covered in [cleaning npm, yarn and pip caches](https://storagestudio.us/faq/mac-storage-basics/how-do-i-clean-npm-yarn-and-pip-caches), and per-project folders in [cleaning up node_modules](https://storagestudio.us/faq/mac-storage-basics/how-do-i-clean-up-node-modules-folders).
