Skip to content

~/.local was 1.4 GB, and it was almost all one AI tool's versions

Command-line tools install into ~/.local/bin and keep data in ~/.local/share. Measured at 1.4 GB, what each part was and what is safe to remove.

4 min read

~/.local is the user-level install location from the Linux world. Tools put their executables in ~/.local/bin and their data in ~/.local/share, and several popular installers, including pipx, uv and Claude Code's native installer, use it on a Mac too.

FolderSizePut there by
share/claude1.1 GBClaude Code, four versions and a helper app
bin134 MBLaunchers for several command-line tools
share/cursor-agent132 MBCursor's terminal agent
pipx32 MBPython tools installed with pipx
share/devin29 MBAn AI agent's data

Check yours

du -sh ~/.local/* ~/.local/share/* 2>/dev/null | sort -h | tail -10
ls -la ~/.local/bin

What is safe

  • Old versions a tool keeps are the main win. Claude Code's are covered in Claude Code taking up space.
  • A tool you no longer use: uninstall it with its own command, pipx uninstall, uv tool uninstall and so on, rather than deleting folders, so its launcher in bin goes too.
  • ~/.local/share/uv holds uv's Python versions and tools, in the uv cache.
  • Do not empty bin wholesale. It is on your PATH, and the commands in it are ones you installed.

Its sibling for caches is ~/.cache, and the whole set of hidden folders is in dot folders taking up space.

Common questions

What is ~/.local on a Mac?

A hidden folder where command-line tools install for your user: executables in ~/.local/bin and data in ~/.local/share.

Is it safe to delete ~/.local/share?

Not all at once. It holds installed tools' data. Remove individual tools with their own uninstall commands, or old versions a tool keeps.

Why is ~/.local so big?

On the Mac measured, 1.1 GB of its 1.4 GB was Claude Code keeping four installed versions.

What is ~/.local/bin?

A folder of launchers for tools installed per user. It is usually on your PATH, so emptying it breaks those commands.

Read next