macOS cleanup guides / Find disk usage

AI tools are taking up more space on your Mac. Where should you look first?

After using several AI tools, disk usage may be spread across application caches, chat history, CLIs, and project copies. Identify which location is growing before choosing a cleanup method.

Find the largest sources before deciding what to clean

The size of an application, the size of its data directory, and the space you can actually reclaim are three different numbers. Record the current state, then measure specific directories. Do not start emptying Library just because System Data has grown.

See each tool’s cleanup candidates first.

Use AgentClean to scan supported local data, review disk usage and notes, then decide what to clean up.

Continue reading

For Mac · Free scanning and review

01 / Look at the whole Mac

First, which disk is nearly full?

On macOS 13 or later, open System Settings → General → Storage and record the available space and main categories. If your projects or tool data are on an external disk, check that disk too. Cleaning an external disk will not free the same amount of space on your startup disk.

The application bundle size shown under Applications does not represent all of a tool’s data. Chats, logs, and caches may be stored separately in your home folder. System Data includes Apple and third-party files that do not fit other categories, so it cannot all be attributed to AI tools.

  1. Record the time, disk name, and available space so you can compare them after cleanup.
  2. Consider whether you recently added tools, ran agents for extended periods, downloaded models, or created several project copies.
  3. Save your work and stop running tasks. When comparing before and after, pause large downloads, builds, and file copies.

02 / Separate the sources

Start with these four types of locations

Common storage locations and what to check
Data locationWhat it may containWhat to check
~/Library/Caches, ~/Library/LogsSome desktop application caches and logs.Inspect only the specific subdirectories belonging to the tool. Do not clear other applications’ data in bulk.
Tool directories under ~/Library/Application SupportInterface caches, and possibly chat databases, workspace state, and extension data.Go one level deeper to separate caches from persistent state. The entire directory is not a cache bin.
Hidden tool directories in your home folder, such as ~/.claude and ~/.codexCLI settings, sessions, memory, logs, or runtime resources, depending on the tool and version.Check for custom data paths. Do not decide what to delete based only on names or file dates.
Project directories and working copies created by toolsSource code, dependencies, build outputs, attachments, and task deliverables.Check for unmerged changes or outputs you need to keep. These may be much larger than interface caches.

In Finder, press ⇧⌘G to open Go to Folder, paste the specific path you have confirmed, then use Get Info to check its size. ~ means the current user’s home folder. A hidden directory not appearing in the normal listing does not mean it is absent.

Confirm where the data actually lives

Desktop apps, CLIs, editor extensions, and remote tasks may use different locations or share state. Data on SSH hosts, in containers, or in cloud tasks is not the same as local disk usage on your Mac. The default paths below are only starting points.

03 / Measure the largest sources

Measure totals, then explore the largest directory

The following commands run in macOS Terminal. They only read directory sizes and available space on the containing volume; they do not delete files. The examples check a few default directories for Cursor, Claude Code, and Codex, and are not a complete coverage list. If you changed a data location, replace the corresponding path with the actual one.

Record disk usage for a few default tool directories
for cleanup_dir in "$HOME/Library/Application Support/Cursor" "$HOME/.claude" "$HOME/.codex"; do
  if [ -d "$cleanup_dir" ]; then
    printf '\nChecking: %s\n' "$cleanup_dir"
    du -sk "$cleanup_dir"
    df -k "$cleanup_dir"
  else
    printf 'Directory not found: %s\n' "$cleanup_dir"
  fi
done

du -sk shows directory usage, while df -k shows space on the volume containing that path. Both count in 1,024-byte blocks. Find the larger directories first, then work down through their contents. Several paths may share a volume, so do not add repeated Available values together.

Using Cursor as an example, show only one directory level
cleanup_dir="$HOME/Library/Application Support/Cursor"
if [ -d "$cleanup_dir" ]; then
  du -k -d 1 "$cleanup_dir" | sort -n
else
  printf 'Directory not found: %s\n' "$cleanup_dir"
fi

Larger values appear at the end. A parent directory’s total already includes its subdirectories, so do not add them again. To check another location, replace only the path on the first line and keep the quotation marks. Permission denied or Operation not permitted means the measurement is incomplete. Do not interpret it as zero usage or respond by immediately elevating privileges to delete files.

04 / Choose the right approach

The largest item determines your next step

  1. If caches or old logs account for most of the space: fully quit the relevant tool, then follow its guide to identify regenerable caches and logs you no longer need.
  2. If sessions, databases, or checkpoints account for most of the space: decide what to keep, then check the tool’s built-in history management or maintenance features. Clearing a few interface caches usually will not address this usage.
  3. If project copies or dependencies account for most of the space: check code, task outputs, and how the project is installed, then follow the project’s or tool’s own management workflow.
  4. If application installations, runtime resources, or local models account for most of the space: identify which copies are still in use and manage them through the original installation method or model manager. Shared package caches cannot all be attributed to one AI tool.
For a quick scan

AgentClean can bring together local cleanup candidates covered by its rules, helping you review sizes and notes by tool. A directory missing from the scan may still use space. Check coverage of projects, cloud data, and custom paths separately.

05 / Investigate by tool

Once you identify the tool, continue with its guide

Tools organize caches, history, and working copies differently. The guides below provide specific paths, retention boundaries, and ways to measure again. Do not apply one tool’s cleanup commands directly to another.

Scan and review in one place

Review supported cleanup items together

AgentClean scans tool data on your Mac within its rules and groups candidates, sizes, and notes by tool. Keep important content first, then select the items you are sure you no longer need.

Scanning and review do not require a subscription. Cleanup requires an active subscription and permanently deletes files without sending them to Trash. Actual coverage depends on scan results; the projects, databases, and system snapshots discussed in this guide are not necessarily covered by AgentClean.

View supported tools · See each tool’s coverage and what you need to keep.

Frequently asked questions

A few more things to check

Does a large System Data category mean AI tools filled the disk?

No. System Data is a broad storage category containing system and third-party files that do not fit other categories. Measure specific tool directories rather than treating the entire category as a deletion target.

Why is the app small in Finder when its actual disk usage is large?

Application bundles and user data are usually stored separately. A tool may keep caches, history, and task data in Library, hidden state directories, and project copies. These are not necessarily included in the application bundle’s size.

If a default directory is missing, does that mean there is no data?

No. Directories vary by version, features used, and custom settings. The tool may also run in a remote environment. Confirm the actual data location first; insufficient read permissions do not mean usage is zero either.

Can all of the capacity found in a scan be freed?

No. Scan results are candidates and may include data you need to keep, protected data, or data in use. Snapshots, background writes, and cache rebuilding can also affect the final deletion results and available disk space.