Remove the environment directory completely.
Section: Reset and rebuild
Delete a venv on Linux/macOS
bash
bash
rm -rf .venvExplanation
The simplest reset is often to delete the environment and recreate it from your requirements or lock source.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Reset and rebuild
Delete a venv on PowerShell
Remove the environment directory recursively.
Recreate from requirements in one line
Delete, recreate, and reinstall dependencies.
Typical Makefile rebuild target
Automate the rebuild workflow in a Makefile target.
Reinstall exactly from requirements
Force reinstall to match a requirements file closely.