DiskBroomWhat it cleans › Hugging Face cache taking up space? Here's the fix

Cleaning guide

The Hugging Face cache grows until you look at it.

~/.cache/huggingface

What it is

Every model, dataset, and tokenizer that transformers, diffusers, or huggingface_hub downloads is cached here — every version of each, kept indefinitely so the next run is instant.

How big it gets

A single modern model checkout runs 2–15 GB; anyone experimenting with a few models commonly reaches 20–100 GB without noticing.

What happens if you delete it

Anything removed re-downloads automatically the next time a script asks for it. The cost is bandwidth and wait, not data — your own fine-tunes and outputs live wherever you saved them, not in the cache.

How to remove it manually — free, no app needed

  1. See the total: du -sh ~/.cache/huggingface
  2. Best tool: pip install huggingface_hub[cli], then huggingface-cli delete-cache — an interactive picker that shows each cached repo and its size.
  3. Manual route: delete individual model folders under ~/.cache/huggingface/hub (each is named after its repo).
  4. Nuclear route: delete the whole ~/.cache/huggingface folder; everything re-downloads on demand.

Risk rating

Worth a look. Safe in the sense that everything re-downloads — but multi-GB re-downloads deserve a glance first.

Prefer not to do this by hand every time? DiskBroom scans this location (and every other one on its published list), shows the size, rates the risk with the same shape you see above, and asks before anything moves — everything goes to the Trash, never past it. Scanning is free forever.

Download DiskBroom free

More cleaning guides

← Everything DiskBroom can clean · FAQ