# GitHub CLI cache

Source: https://diskcity.app/folders/dev-gh-cache

**Safe to delete.** Yes. gh fetches what it needs again from GitHub.

## What it is

The GitHub CLI caches API answers and downloaded workflow run logs here (its cache folder on macOS) and fetches them again when asked.

Kept while gh runs. Your sign-in and settings live in ~/.config/gh and stay.

## Where it is

- `~/.cache/gh`

## How big is it?

```sh
du -sh "$HOME/.cache/gh"
```

## How to remove it

1. Quit gh first.
2. In Finder, choose Go > Go to Folder (Shift-Command-G), paste the path above and press Return.
3. Move its contents to the Trash.
4. Empty the Trash to get the space back. Until then, you can still put things back.

## What DiskCity does with it

DiskCity labels it as rebuildable and removes it when you approve, or on its own if you turn on Autopilot. It waits until gh is closed.

## Sources

- https://cli.github.com/manual/gh_help_environment

Checked 2026-10-24.
