uv cache prune

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Developers using uv can reclaim tens of gigabytes of disk instantly with a single safe command, as Willison's 63.4GB cache shows.

Read this as

uv is a fast tool that programmers use to install Python software packages, and it secretly stores copies of them in a hidden folder so it can run faster. Simon Willison found that folder had grown to 63.4GB on his Mac, filling his hard drive. The fix is a command called 'uv cache prune', which deletes old stored files that are no longer needed. It is safe to run regularly and freed up his disk space immediately.

This is a short operational tip, not product news: the Python package manager uv accumulates gigabytes of cached files, 63.4GB on Willison's Mac, and running 'uv cache prune' safely deletes unused entries, including leftovers from older uv versions. Teams with many developers on macOS may quietly lose disk capacity the same way. No costs, timelines or competitive implications are discussed, and the post is sponsored by WorkOS.

uv stores downloaded wheels and built artifacts under ~/.cache/uv, which can grow unbounded across versions; entries created by previous uv versions may become obsolete. 'uv cache prune' removes all unused cache entries and is safe to run periodically. Willison's cache had reached 63.4GB before pruning. The post includes no benchmarks, no details on pruning logic, and no comparison with manual cache deletion.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

uv uv cache prune Simon Willison OmniDiskSweeper WorkOS Datasette Ladybird Pyodide

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading