pipx icon indicating copy to clipboard operation
pipx copied to clipboard

Add Command to Erase pipx Cache

Open ever3001 opened this issue 2 months ago • 1 comments

How would this feature be useful?

When using pipx run PACKAGE, I encountered a situation where the cached package was corrupted, causing the command to fail. Currently, there's no straightforward way to clear the cache (only removing the folder manually), which can be frustrating for users who aren't familiar with pipx's internal storage paths. A dedicated command would make this process easier.

Describe the solution you'd like

I'd like to see a new command such as pipx cache erase or pipx clear-cache that safely removes all cached packages. This would allow users to reset the cache without manually deleting files or directories.

Describe alternatives you've considered

The only workaround I found was manually locating and deleting the cache directory.

ever3001 avatar Oct 06 '25 12:10 ever3001

Please see #1606.

dukecat0 avatar Oct 06 '25 12:10 dukecat0