Skip to content

Add Command to Erase pipx Cache #1681

@ever3001

Description

@ever3001

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions