Approved catalog listing
SKILL #3816
skillshunter.net
Home / Software & Development / Free Up Space Mac
Listing Approved Approved on: November 30, 2026

Free Up Space Mac

Free up space on a Mac safely by clearing caches, listing large files, and reviewing old AI models. The process measures free space, deletes safe caches, lists files for review, and reports the amount of space freed.

Rate this skill

No ratings yet

Editor's Note

Before running the cleanup, ensure no apps are actively using caches (e.g., Chrome, Xcode, or AI agents). Check for running processes using `ps -axo pid,etime,comm` and close any apps that may be writing to caches. Also, ensure the user has reviewed and confirmed the deletion of files in the 'Review' list before proceeding.

When to Use It

  • Free up space on a Mac when storage is low
  • Clean up caches that rebuild themselves (e.g., Chrome, npm, Xcode)
  • List large files and old AI models for review and deletion
  • Run a weekly disk cleanup to maintain system performance

SKILL.md

SkillsHunter provides this listing for informational purposes only. Review the skill’s source, license, and required permissions before use. You are responsible for deciding whether to install or run it. Terms of Use

↓ Download .md

Free up space on Mac

A weekly cleanup. Delete the safe list without asking. For everything in Review, show sizes and wait for the user to pick. Never touch Keep.

1. Measure

df -h /System/Volumes/Data | tail -1
du -sh ~/* ~/.[!.]* 2>/dev/null | sort -rh | head -20

Note the "Avail" figure, so you can report how much was freed at the end.

2. Check what's running

Some caches belong to apps that may be open. Check first:

ps -axo pid,etime,comm | grep -i -E "codex|claude|Chrome|Brave|Edge|Arc|Spotify|Xcode|node|npm|python" | grep -v grep
  • Browser caches can be cleared while the browser is open. The browser rebuilds them.
  • If an AI coding agent (Codex, Claude Code) is running a job, skip its data folders this time, or wait until it exits. Deleting its database mid-run can crash the job.
  • If npm, yarn or Xcode is building, skip its cache.

3. Safe list: delete without asking

These rebuild themselves. Delete only the ones that exist. Use full paths, not cd followed by a relative glob.

Cache Path
Chrome ~/Library/Caches/Google/Chrome
Brave ~/Library/Caches/BraveSoftware, ~/Library/Caches/com.brave.Browser
Edge ~/Library/Caches/Microsoft Edge
Arc ~/Library/Caches/Arc
Spotify ~/Library/Caches/com.spotify.client
Homebrew ~/Library/Caches/Homebrew (or run brew cleanup --prune=all)
pip ~/Library/Caches/pip
npm ~/.npm/_cacache, ~/.npm/_npx, ~/.npm/_logs
Yarn ~/.yarn/berry, ~/Library/Caches/Yarn
pnpm ~/Library/pnpm/store (or run pnpm store prune)
uv ~/.cache/uv
Xcode ~/Library/Developer/Xcode/DerivedData
Codex runtime downloads ~/.cache/codex-runtimes, ~/.codex/cache

"Directory not empty" errors mean the app is writing while you delete. They're harmless.

Then also delete these:

  • Web project build folders. Delete node_modules, .next, dist and .turbo only in projects not edited in the last 14 days. npm install and npm run build bring them back. To find them:
    find ~/Desktop ~/Documents ~/code ~/Projects -maxdepth 4 -type d \( -name node_modules -o -name .next -o -name .turbo \) -prune -mtime +14 -exec du -sh {} + 2>/dev/null
    
  • Leftover Claude Code chat folders. Delete a folder under ~/.claude/projects/ when the project it belongs to no longer exists. Read the cwd field in one of its .jsonl files and check whether that path still exists. Skip any folder whose newest file changed in the last day. Never delete a memory/ subfolder. It holds the user's saved memories. Delete everything else in the folder and leave memory/ in place.

4. Review list: show sizes, then ask

Measure each one, then list it with its size and what deleting it costs. Delete only what the user picks.

du -sh ~/Desktop/*/ ~/Documents/*/ ~/Downloads ~/.cache/* ~/.codex/* "$HOME/Library/Application Support"/* 2>/dev/null | sort -rh | head -30
find ~ -type f -size +500M -not -path "*/Library/Application Support/Claude/vm_bundles/*" -exec du -sh {} + 2>/dev/null | sort -rh | head -20
  • Big video and render files (.mp4, .mov, .prores, PNG frame sequences) in finished projects. Read the project's README or notes first, so the final export, and any master needed for re-editing, are kept.
  • Downloads older than 60 days, especially .dmg, .zip and .pkg installers.
  • AI models in ~/.cache/huggingface/hub, ~/.ollama/models and ~/.cache/whisper. Before offering one, grep the user's projects for its name and say which script uses it.
  • AI agent history: for example ~/.codex/thread_history_*.sqlite, ~/.codex/generated_images, ~/.codex/sessions.
  • Large Claude Code chats older than 30 days. List the 15 largest with size, age, project and first prompt. Never offer one changed in the last day, since it may be a session that's still running.
  • App data for apps no longer used: large folders in ~/Library/Application Support and ~/Library/Containers. Deleting one resets that app.
  • iOS device backups in ~/Library/Application Support/MobileSync/Backup, and old iOS simulators (xcrun simctl delete unavailable).
  • Docker: docker system df, then docker system prune if the user agrees.
  • The Trash, if it's over 1 GB.

5. Keep: never delete

  • ~/.ssh, ~/.gnupg, ~/.config, ~/.aws, ~/.kube (keys, credentials and settings)
  • ~/.claude/skills, ~/.claude/plugins, ~/.claude/CLAUDE.md, and every memory/ folder under ~/.claude/projects/
  • ~/Library/Application Support/Claude/vm_bundles (the sandbox Claude needs; a large re-download)
  • Python virtual environments (.venv, ~/.venvs) unless the user names one
  • Anything tracked in git
  • Final exports and masters unless the user names them
  • Anything under /System or /Library. Stay inside the home folder.

6. Report

Run df -h again. Then report:

  • Free space before and after
  • A short table of what was deleted
  • The Review list with sizes, so the user can pick
View original Markdown
---
name: free-up-space-mac
description: Free up space on a Mac safely. Weekly disk cleanup that measures free space, clears caches that rebuild themselves (browser, npm, yarn, pip, Homebrew, Xcode), lists large files and old AI models for review, and reports GB freed. Use when the user says "free up space", "clean up my Mac", "Mac storage full", "System Data is huge", "disk is full", or runs /free-up-space-mac.
---

# Free up space on Mac

A weekly cleanup. Delete the **safe** list without asking. For everything in **Review**, show sizes and wait for the user to pick. Never touch **Keep**.

## 1. Measure

```bash
df -h /System/Volumes/Data | tail -1
du -sh ~/* ~/.[!.]* 2>/dev/null | sort -rh | head -20
```

Note the "Avail" figure, so you can report how much was freed at the end.

## 2. Check what's running

Some caches belong to apps that may be open. Check first:

```bash
ps -axo pid,etime,comm | grep -i -E "codex|claude|Chrome|Brave|Edge|Arc|Spotify|Xcode|node|npm|python" | grep -v grep
```

- Browser caches can be cleared while the browser is open. The browser rebuilds them.
- If an AI coding agent (Codex, Claude Code) is running a job, skip its data folders this time, or wait until it exits. Deleting its database mid-run can crash the job.
- If `npm`, `yarn` or Xcode is building, skip its cache.

## 3. Safe list: delete without asking

These rebuild themselves. Delete only the ones that exist. Use full paths, not `cd` followed by a relative glob.

| Cache | Path |
|---|---|
| Chrome | `~/Library/Caches/Google/Chrome` |
| Brave | `~/Library/Caches/BraveSoftware`, `~/Library/Caches/com.brave.Browser` |
| Edge | `~/Library/Caches/Microsoft Edge` |
| Arc | `~/Library/Caches/Arc` |
| Spotify | `~/Library/Caches/com.spotify.client` |
| Homebrew | `~/Library/Caches/Homebrew` (or run `brew cleanup --prune=all`) |
| pip | `~/Library/Caches/pip` |
| npm | `~/.npm/_cacache`, `~/.npm/_npx`, `~/.npm/_logs` |
| Yarn | `~/.yarn/berry`, `~/Library/Caches/Yarn` |
| pnpm | `~/Library/pnpm/store` (or run `pnpm store prune`) |
| uv | `~/.cache/uv` |
| Xcode | `~/Library/Developer/Xcode/DerivedData` |
| Codex runtime downloads | `~/.cache/codex-runtimes`, `~/.codex/cache` |

"Directory not empty" errors mean the app is writing while you delete. They're harmless.

Then also delete these:
- **Web project build folders.** Delete `node_modules`, `.next`, `dist` and `.turbo` only in projects not edited in the last 14 days. `npm install` and `npm run build` bring them back. To find them:
  ```bash
  find ~/Desktop ~/Documents ~/code ~/Projects -maxdepth 4 -type d \( -name node_modules -o -name .next -o -name .turbo \) -prune -mtime +14 -exec du -sh {} + 2>/dev/null
  ```
- **Leftover Claude Code chat folders.** Delete a folder under `~/.claude/projects/` when the project it belongs to no longer exists. Read the `cwd` field in one of its `.jsonl` files and check whether that path still exists. Skip any folder whose newest file changed in the last day. **Never delete a `memory/` subfolder.** It holds the user's saved memories. Delete everything else in the folder and leave `memory/` in place.

## 4. Review list: show sizes, then ask

Measure each one, then list it with its size and what deleting it costs. Delete only what the user picks.

```bash
du -sh ~/Desktop/*/ ~/Documents/*/ ~/Downloads ~/.cache/* ~/.codex/* "$HOME/Library/Application Support"/* 2>/dev/null | sort -rh | head -30
find ~ -type f -size +500M -not -path "*/Library/Application Support/Claude/vm_bundles/*" -exec du -sh {} + 2>/dev/null | sort -rh | head -20
```

- **Big video and render files** (`.mp4`, `.mov`, `.prores`, PNG frame sequences) in finished projects. Read the project's README or notes first, so the final export, and any master needed for re-editing, are kept.
- **Downloads** older than 60 days, especially `.dmg`, `.zip` and `.pkg` installers.
- **AI models** in `~/.cache/huggingface/hub`, `~/.ollama/models` and `~/.cache/whisper`. Before offering one, grep the user's projects for its name and say which script uses it.
- **AI agent history:** for example `~/.codex/thread_history_*.sqlite`, `~/.codex/generated_images`, `~/.codex/sessions`.
- **Large Claude Code chats** older than 30 days. List the 15 largest with size, age, project and first prompt. Never offer one changed in the last day, since it may be a session that's still running.
- **App data for apps no longer used:** large folders in `~/Library/Application Support` and `~/Library/Containers`. Deleting one resets that app.
- **iOS device backups** in `~/Library/Application Support/MobileSync/Backup`, and old **iOS simulators** (`xcrun simctl delete unavailable`).
- **Docker:** `docker system df`, then `docker system prune` if the user agrees.
- The **Trash**, if it's over 1 GB.

## 5. Keep: never delete

- `~/.ssh`, `~/.gnupg`, `~/.config`, `~/.aws`, `~/.kube` (keys, credentials and settings)
- `~/.claude/skills`, `~/.claude/plugins`, `~/.claude/CLAUDE.md`, and every `memory/` folder under `~/.claude/projects/`
- `~/Library/Application Support/Claude/vm_bundles` (the sandbox Claude needs; a large re-download)
- Python virtual environments (`.venv`, `~/.venvs`) unless the user names one
- Anything tracked in git
- Final exports and masters unless the user names them
- Anything under `/System` or `/Library`. Stay inside the home folder.

## 6. Report

Run `df -h` again. Then report:
- Free space before and after
- A short table of what was deleted
- The Review list with sizes, so the user can pick

Community Reviews & Field Notes

Tried this skill on your own project? Share the model you used and the results you got.

Add Your Review

Approved reviews appear publicly with the name or role you enter. See the Privacy Notice.