Is it safe to delete PyTorch hub cache?

~/.cache/torch · Safe to delete

What it is

Pretrained models downloaded by PyTorch.

Can you delete it?

Yes, it is rebuilt automatically. Downloaded again when code loads them.

How to clean it safely

  1. Delete models you no longer use.

How big is it on your Mac?

This read-only command prints its size and changes nothing:

 Terminal
du -sh ~/".cache/torch" 2>/dev/null

Step-by-step guide: AI model files →

Questions

Is it safe to delete ~/.cache/torch?

Yes, it is rebuilt automatically. Downloaded again when code loads them.

Let the raccoon do it, safely

Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.

Download for Mac