Python venv Cheat Sheet/Delete a venv on PowerShell

Remove the environment directory recursively.

Section: Reset and rebuild

Delete a venv on PowerShell

powershell
powershell
Remove-Item -Recurse -Force .venv
Explanation

PowerShell equivalent of deleting the whole environment folder.

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 Linux/macOS
Remove the environment directory completely.
OpenIn sheetbashsame section
Recreate from requirements in one line
Delete, recreate, and reinstall dependencies.
OpenIn sheetbashsame section
Typical Makefile rebuild target
Automate the rebuild workflow in a Makefile target.
OpenIn sheetmakefilesame section
Reinstall exactly from requirements
Force reinstall to match a requirements file closely.
OpenIn sheetbashsame section
Create with Windows py launcher
Create an environment using the Windows Python launcher.
OpenIn sheetpowershell1 tag match
Activate on Windows CMD
Activate from Command Prompt.
OpenIn sheetbat1 tag match