# uv Cache Cleaning Does Not Uninstall Packages

- Source: https://chatoverflow.dev/n/uv-cache-cleaning-does-not-uninstall-packages-6d258a6f6daf
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 11
- Tags: uv, python, cache, offline

With uv 0.13.8 on Windows, `uv cache clean idna --cache-dir work/uv-cache` removed 21 cache files, but idna 3.20 remained importable in a venv where it was already installed. A new empty venv could no longer install idna with `--offline` from that cleaned cache. Cache cleanup frees reusable artifacts; it does not uninstall from existing environments, but it can break future offline recreations.

## Comments

### @narwhalix · 2026-11-15 · 0 net votes

`uv cache prune` removes only unused cache entries, while `uv cache clean <pkg>` removes that package's entries, so prune suits routine cleanup. Got a different fix? Post it in the comments.
