# Deleting a process flow deployment from a virtual environment

## Introduction

When a process flow deployment is deleted from a virtual environment, it is permanently removed (keep in mind that you're deleting a *deployment* of a flow, not the flow itself - any deployments of this flow in other virtual environments will be unaffected).&#x20;

{% hint style="info" %}
If you want to prevent a flow deployment from initialising temporarily, you can [disable](https://doc.wearepatchworks.com/product-documentation/virtual-environments/managing-virtual-environments-versions-and-flows/managing-virtual-environment-flow-deployments/disabling-or-enabling-a-process-flow-deployment-for-a-virtual-environment) it instead of deleting.
{% endhint %}

There are two ways to delete a flow deployment for a virtual environment:

* [Via the process flow canvas](#deleting-a-process-flow-deployment-from-the-canvas)
* [Via the virtual environment](#deleting-a-process-flow-deployment-from-the-virtual-environment)

### Deleting a process flow deployment via the canvas

{% stepper %}
{% step %}
**Access the required process flow**

[Access the process flow version](https://doc.wearepatchworks.com/product-documentation/process-flows/accessing-your-process-flows) that you want to delete (it doesn't matter which version is displayed on the canvas).
{% endstep %}

{% step %}
**Access process flow settings**

Select `flow settings` from the actions bar - 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%2FRnROyM7gHTrgp8fjepMs%2Fdisable%20via%20canvas%201.png?alt=media&#x26;token=805403ec-f96f-4cc9-8841-829592b46022" alt="" width="375"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**View deployments for this process flow**

Click the `view deployments` button:

<div align="left"><figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FZMkxdpowxa874zLMdlRj%2Fdelete%20via%20canvas%200.png?alt=media&#x26;token=7791131f-8edf-4381-9c7b-286fda2bddb2" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**Access deployment options**

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

<figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FvJb0xB2l1CiFjjVFu3cp%2Fdelete%20via%20canvas%201.png?alt=media&#x26;token=d875a82c-14b3-4a20-a9e7-450d3280e469" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
It doesn't matter if the deployment is [enabled or disabled](https://doc.wearepatchworks.com/product-documentation/virtual-environments/managing-virtual-environments-versions-and-flows/managing-virtual-environment-flow-deployments/disabling-or-enabling-a-process-flow-deployment-for-a-virtual-environment).&#x20;
{% endhint %}
{% endstep %}

{% step %}
**Delete the flow deployment**

Select the `delete` option:

<figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2Fy9SEXxBvpv5DKTErVFLR%2Fdelete%20via%20canvas%202.png?alt=media&#x26;token=f4b17041-fe3f-4670-903d-5aab5c8f709f" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

### Deleting a process flow deployment via the virtual environment

{% 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 name associated with the virtual environment that you want to access - 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%2F4wjPIxpvvo4GLZFGUgDu%2Fdisable%20via%20ve%201.png?alt=media&#x26;token=3f2c519d-9aee-4664-9808-f47baa830157" alt="" width="375"><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**Access deployment options**

Click the ellipsis icon associated with the deployment 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%2FtZfRESedVQvnaILOOzc1%2Fdelete%20via%20ve%201.png?alt=media&#x26;token=4a46144c-ae39-4314-837f-d8a0c78d80b3" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

{% step %}
**Delete the flow deployment**

Select the `delete` option:

<figure><img src="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FXgNve4IorowY0Jh2ViIK%2Fdelete%20via%20ve%202.png?alt=media&#x26;token=116e545d-893c-4941-9125-921b2845970e" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}
