# Deleting a virtual environment

## Introduction

If a virtual environment is no longer used, you can delete it. Deleting a virtual environment removes it entirely.

## Need to know

* You cannot delete a virtual environment if it includes flow deployments, irrespective of whether these are enabled or disabled. In this scenario, you must [delete all existing flow deployments](https://doc.wearepatchworks.com/product-documentation/virtual-environments/managing-virtual-environments-versions-and-flows/managing-virtual-environment-flow-deployments/deleting-a-process-flow-deployment-from-a-virtual-environment) first.

## The steps

{% stepper %}
{% step %}
**Access virtual environments**

[Log in to the dashboard](https://app.wearepatchworks.com/virtual-environments) and select `virtual environments` | `overview` from the left-hand navigation menu.
{% endstep %}

{% step %}
**Select the required virtual environment**

Click the ellipsis icon associated with the virtual environment that you want to delete - for example:

<div align="left"><figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2Fiolxxbg0ibaM1cV482VQ%2Fdelete%20virtual%20environment%20%201a.png?alt=media&#x26;token=0d46f107-11f8-47af-94b8-62ad08f5c737" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**Delete the selected virtual environment**

Select the `delete` option:

<figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FZFkUrcdoFxePW5tFE8Vj%2Fdelete%20virtual%20environment%20%201b.png?alt=media&#x26;token=8c8da194-ac18-403f-bda0-bc3ea901e616" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Confirm this action**

When prompted, confirm that you want to proceed with the removal:

<div align="left"><figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FFSF3sfPP9msdjA0XDgeL%2Fdelete%20VE%20confirm%20request.png?alt=media&#x26;token=2af27a7b-b47d-431f-af80-061daebb4b28" alt="" width="375"><figcaption></figcaption></figure></div>

The virtual environment is removed immediately.
{% endstep %}
{% endstepper %}
