What it is
A project's own copy of Python and its installed packages.
Can you delete it?
Sometimes, check what is inside first. It can be recreated if the project lists its packages (requirements.txt, pyproject.toml or a lock file). If not, write the list down first.
How to clean it safely
- Save the list if there is none: pip freeze > requirements.txt
- Delete the .venv folder.
- Recreate: python3 -m venv .venv, then install the requirements.
Step-by-step guide: Clean up Python environments →
Related folders
- pyenv Python versions ·
~/.pyenv/versions - .mypy_cache / .pytest_cache ·
<project>/.mypy_cache - uv cache ·
~/.cache/uv - pipx apps ·
~/.local/pipx - .tox / .nox ·
<project>/.tox - pip cache ·
~/Library/Caches/pip
Questions
Is it safe to delete <project>/.venv?
Sometimes, check what is inside first. It can be recreated if the project lists its packages (requirements.txt, pyproject.toml or a lock file). If not, write the list down first.
Let the raccoon do it, safely
Junk Raccoon finds this clutter for you, shows every file first, and keeps a one-click way back. Free to download, no account, no ads.
Download for Mac