# 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](/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.md) 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](/product-documentation/process-flows/accessing-your-process-flows.md) 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="/files/9Ri4AZH0p7LYNCCvza4e" 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="/files/BtphHXpKLmVq4LfLjMYZ" 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="/files/SVsQ25FDyDVON5qiUR8e" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
It doesn't matter if the deployment is [enabled or disabled](/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.md).&#x20;
{% endhint %}
{% endstep %}

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

Select the `delete` option:

<figure><img src="/files/oYqwwFAVE0PjEpCCzjcL" 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="/files/1P78NUfgHuGAp0QU1g6N" 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="/files/t7Br2fpmwLOukb2q1az0" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

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

Select the `delete` option:

<figure><img src="/files/KuwNvGzjTKfnDT93tBfn" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET 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.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
