hf cache prune

Category: AI/ML Tooling

hf cache prune

Remove orphaned cache revisions

Deletes cached revisions no longer referenced by any tag or branch, the leftovers of repeated `hf download` calls that accumulate silently. It never touches the revision currently pointed at by a tag. Run `hf cache ls` before and after to see the reclaimed space.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.