# Homebrew cache

Source: https://diskcity.app/folders/everyday-homebrew-cache

**Safe to delete.** Yes. Homebrew downloads again when needed.

## What it is

Homebrew cache is data your Mac or an app can rebuild. It lives at ~/Library/Caches/Homebrew.

## Where it is

- `~/Library/Caches/Homebrew`

## How big is it?

```sh
du -sh "$HOME/Library/Caches/Homebrew"
```

## How to remove it

1. Make sure no brew command is running.
2. In Finder, choose Go > Go to Folder (Shift-Command-G) and open `~/Library/Caches/Homebrew/downloads`, then `~/Library/Caches/Homebrew/Cask`.
3. Move what's inside those two folders to the Trash, except files ending in .incomplete or .lock (a download under way). Leave the rest of the Homebrew cache: Homebrew works from it.
4. Empty the Trash to get the space back. Until then, you can still put things back.

## What DiskCity does with it

DiskCity removes Homebrew's downloads itself, leaves the files Homebrew works from, when you approve, or on its own if you turn on Autopilot.
