app like that
GitHub - Tlaloc-Es/killpy
GitHub - Tlaloc-Es/killpy

Killpy is a tool that helps you reclaim disk space by cleaning up unused Python environments such as virtualenv, Poetry, and Conda. It automatically searches and lists directories to be deleted, supports Conda environments, and removes unnecessary files efficiently.

Features

Automatic Search

Finds all .venv directories and any folders containing a pyvenv.cfg file recursively from the current working directory, as they are considered virtual environment folders.

Support for Conda

Lists all available Conda environments to help manage and clean up unnecessary environments.

Safe Deletion

Lists directories to be deleted and asks for confirmation, ensuring no accidental deletions.

Fast and Lightweight

Minimal dependencies for quick execution, making it efficient and easy to use.