macOS cleanup guides / When storage is full

Mac storage full from AI tools: what to check first

An AI workflow can grow several stores at once: editor caches, local models, package downloads, generated builds and extra project copies. A large System Data category does not identify a single folder you can safely erase.

Stop growth, identify the large files, then choose

Pause downloads and long-running tasks. Preserve unsaved work. Start with known, replaceable files and measure the affected volume after each step. Do not erase an entire Library or AI-tool home directory.

Start with the biggest verified category

Follow the triage steps before selecting files. AgentClean can inspect candidates for supported AI apps; other storage categories need their own tools.

Start the space check

Scanning and review are free. Permanent cleanup requires an active subscription.

01 / Create room to work without losing work

Create room to work without losing work

  1. Pause model downloads, repeated builds and tasks writing large logs or outputs. Save work where possible before quitting applications.
  2. Inspect large personal downloads or installers you already recognize. Move files to another volume only after verifying the destination copy; moving within the same volume does not free capacity.
  3. Review Trash before emptying it. If the Mac cannot save or restart normally, follow Apple’s storage guidance before attempting broad app-data cleanup.

02 / Find the actual storage owner

Find the actual storage owner

Open System Settings → General → Storage for a broad view. Then use Finder Get Info on specific folders or the read-only commands below. Check the startup disk and any external volume separately.

Inspect free space and common locations
df -h "$HOME"
du -sh "$HOME/Library/Application Support" "$HOME/Library/Caches" "$HOME/.ollama/models" "$HOME/Library/Developer/Xcode/DerivedData"

Missing folders and permission errors are normal: use the app’s configured path and do not add sudo to bypass an unexplained error. Parent folder totals include their children, so do not add overlapping sizes. The sample model and build paths may be customized.

03 / Choose a cleanup method for each category

Choose a cleanup method for each category

Choose a cleanup method for each category
CategoryFirst actionKeep in mind
App caches and diagnosticsReview supported candidates in AgentClean, or inspect named cache folders.Caches may rebuild. Keep logs still needed for support.
Local modelsInspect the model list and actual model directory; use the model manager’s removal command.Models may share layers. AgentClean does not currently support Ollama.
Package caches and dependenciesUse npm, Yarn or pnpm’s own maintenance commands after checking the version and path.Keep lockfiles and source. node_modules belongs to a project, not an app-wide cache.
Xcode build dataInspect the configured Derived Data folder and remove only obsolete generated data manually.AgentClean does not currently support Derived Data. Keep Archives and release symbols.
Project copies, worktrees and historyReview status, uncommitted changes and backups before using the owning tool.An old date or a large size does not make work disposable.

04 / Protect the parts that cannot simply be rebuilt

Protect the parts that cannot simply be rebuilt

Keep source repositories, credentials, settings, MCP configuration, conversations and local task data unless you explicitly intend to remove them. Do not delete database files, a whole VM bundle or everything under Application Support to chase a storage total.

For Windsurf, Cascade memories are a caution item. For Claude Desktop, VM resources and version-dependent runtime files need their specific scan conditions. Review each path, back up important work and leave uncertain entries unselected.

05 / Check the space that actually became available

Check the space that actually became available

Record free space on the target volume before and after cleanup. Trash, files still held open, APFS snapshots and shared model layers can make the change smaller or slower than the selected file total. Restart an app only after saving and ending its work.

Some caches and build products will return. Review the folders that keep growing and adjust retained models or unused projects. Do not disable swap, delete system folders or remove local snapshots indiscriminately to force the storage graph to shrink.

Detailed steps for the next decision

Scan and review in one place

Review supported AI tool data in one place

Use AgentClean for the supported app caches and cleanup candidates you identified. Select deliberately after reviewing paths and cautions.

Scanning and review are free; permanent cleanup requires an active subscription. Model managers, package managers and Xcode remain separate workflows.

View supported tools · Coverage depends on current rules and installed versions.

Frequently asked questions

A few more things to check

Why is my Mac full after using AI coding tools?

The workflow may create caches, models, dependencies, build products and project copies in different places. Check actual folders; the System Data category alone does not identify what can be removed.

Should I delete all AI tool data at once?

No. Settings, credentials, history and active tasks can share parent directories with caches. Review specific candidates and preserve important work before confirming.

Can AgentClean clean everything in this guide?

No. AgentClean covers the tools and paths in its current rules. Ollama models, package-manager maintenance and Xcode Derived Data need their separate manual workflows described here.

Why did free space barely change?

Trash, open files, APFS snapshots or shared model layers may still retain storage. Compare the same volume after reviewing Trash and ending relevant processes; do not count overlapping folder totals twice.