AI Clutter

How to clear Claude, Cursor, ChatGPT and Codex caches without losing your chats

AI apps and coding tools keep a surprising amount on your Mac: caches to start faster, logs, old copies of themselves after each update, your session history, and, if you run models locally, files that are many gigabytes each. Some of it is safe to clear any time. Some of it is the only copy of your past conversations.

Here’s where each tool keeps its files, what’s safe to delete, and what to leave alone.

The rule of thumb

  • Safe to clear: caches, logs and old versions. The tools rebuild caches as you work, start new logs straight away, and only need the version you’re using now.
  • Your call: session history, temporary files from coding sessions, images and files the tools made, and downloaded models.
  • Leave alone: sign-in data, settings and anything named Local Storage, IndexedDB or Preferences.

Always quit a tool before clearing its files. An open app may be writing to them, or recreate them straight away.

Claude (desktop app)

The Claude app keeps its data in:

~/Library/Application Support/Claude

Inside, these folders are caches the app rebuilds:

  • Cache
  • Code Cache
  • GPUCache

Your conversations are stored in your Claude account, not in these folders, so clearing caches doesn’t delete them. Leave Local Storage, IndexedDB and Preferences alone: that’s where your sign-in and settings live.

Cursor and Windsurf

Cursor and Windsurf are code editors built on the same base as VS Code. Their data is in ~/Library/Application Support/Cursor and ~/Library/Application Support/Windsurf. The folders worth clearing are:

  • Cache, Code Cache and GPUCache
  • CachedData, which holds compiled copies of the editor and grows with every update
  • logs

Don’t delete User: it holds your settings, keyboard shortcuts and workspace history.

ChatGPT

The ChatGPT app keeps its caches in ~/Library/Caches, in folders whose names start with com.openai. Quit the app and those can go. Your conversations are stored in your account, not in the cache.

Claude Code and Codex (command line)

Claude Code and Codex keep their data in hidden folders in your home folder:

  • ~/.claude for Claude Code
  • ~/.codex for Codex

These hold your session history: the thing that lets you resume a conversation. Don’t empty them unless you’re sure you won’t need those sessions. Inside, look for log folders and delete old logs instead.

Both tools also update often, and older versions can be left behind. If you installed them with npm or Homebrew, npm cache clean --force and brew cleanup remove old downloads.

Gemini and Antigravity

Google’s Gemini command-line tool keeps its data in ~/.gemini, including settings and history. As with Claude Code and Codex, clear logs and caches, and keep history you might want to resume.

Local models: Ollama, LM Studio and Hugging Face

If you run models on your Mac, they’re usually the biggest AI files by far: a single model can be 4–40 GB.

  • Ollama: ~/.ollama/models. List and remove models with ollama list and ollama rm followed by the model name.
  • LM Studio: ~/.lmstudio/models (older versions used ~/.cache/lm-studio/models). Remove models from the app’s My Models screen.
  • Hugging Face: ~/.cache/huggingface/hub, used by Python tools and many apps that download models.

Models aren’t caches in the usual sense: deleting one means downloading it again to use it, which can take a long time. Remove the ones you’ve stopped using, not the ones you use every week.

See what’s big

To check the size of every AI folder at once, open Terminal and run:

Terminal
du -sh ~/.claude ~/.codex ~/.gemini ~/.ollama ~/.lmstudio ~/.cache/huggingface "$HOME/Library/Application Support/Claude" "$HOME/Library/Application Support/Cursor" 2>/dev/null | sort -h

Folders that don’t exist on your Mac are simply skipped.

What not to delete

  • Session folders you might want to resume, in ~/.claude, ~/.codex and ~/.gemini.
  • Sign-in and settings data: Local Storage, IndexedDB, Preferences, and Cursor’s or Windsurf’s User folder.
  • Files the tools made for you, such as generated images, until you’ve saved the ones you want.
  • Models you still use.
AI Clutter results: 4.8 GB in 5 AI tools, 1.74 GB of it rebuilds itself
AI Clutter

Or let Tinymop sort it

AI Clutter checks Claude, Claude Code, Cursor, Codex, ChatGPT, Gemini and Antigravity, Windsurf, Ollama, LM Studio and Hugging Face. It splits what it finds into Rebuilds itself (caches, old versions and logs) and Your call (temporary files, sessions and history, files the tools made, and local models). Only the first group is ticked, the newest version of each tool is always kept, and a tool that’s open is skipped until you quit it.

Download for Mac
CLAUDECHATGPTCLAUDE CODE4.8 GB
cleared