Limpa Tudo

Guides

AI and ML caches: Hugging Face, uv, pip, Puppeteer and Cypress

Published November 23, 2026

Trying a few models or test runners leaves gigabytes behind: every Hugging Face model you've loaded, every Python wheel, every browser Puppeteer or Cypress downloaded. None of it is cleaned up automatically.

1. Measure

du -sh ~/.cache/huggingface ~/.cache/uv ~/.cache/pip ~/Library/Caches/pip \
  ~/.cache/puppeteer ~/Library/Caches/Cypress ~/.cache/Cypress ~/.ollama 2>/dev/null

2. Hugging Face models 🟡

~/.cache/huggingface/hub keeps every model and dataset you've downloaded with transformers, diffusers or the Hub client. They come back on the next load — but some are tens of GB, so pick what to remove:

hf cache scan          # older versions: huggingface-cli scan-cache
hf cache delete        # older versions: huggingface-cli delete-cache (interactive picker)

3. Python packages 🟢

uv cache prune     # removes unused entries
uv cache clean     # removes everything
pip cache purge

Virtual environments (.venv) inside old projects are another big slice; they're recreated with uv sync or pip install -r requirements.txt.

4. Test browsers 🟢

5. Local LLMs

Ollama keeps models in ~/.ollama/models. Remove them with the tool itself so its index stays consistent:

ollama list
ollama rm llama3.1:70b

Limpa Tudo lists the Hugging Face, uv, pip, Puppeteer and Cypress caches with their size and path; Hugging Face is marked 🟡 because models are slow to download again. Ollama models aren't in the catalog — use ollama rm.