realtwin.util_lib.venv_delete

realtwin.util_lib.venv_delete(*, venv_name: str = '', venv_dir: str = '', verbose: bool = True) bool[source]

Delete the virtual environment in the specified folder with the specified name.

Parameters:
  • venv_name (str) – the name of the virtual environment

  • venv_dir (str) – the path to the folder where the virtual environment will be deleted

  • verbose (bool) – whether to print the progress

Example

>>> import realtwin as rt
>>> rt.venv_delete(venv_name="my_venv", venv_dir="/path/to/dir")
Returns:

True if the virtual environment is deleted successfully, False otherwise

Return type:

bool