> For the complete documentation index, see [llms.txt](https://doc.wearepatchworks.com/product-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](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.md).

# Disabling or enabling a process flow deployment for a virtual environment

## Introduction

If you need to temporarily prevent a deployed process flow from running in a virtual environment, you can [disable](#disabling-a-flow-deployment-for-a-virtual-environment) it, then [enable](#enabling-a-flow-deployment-for-a-virtual-environment) it again when you're ready. For example, if your third-party system experiences an outage, you may want to stop a flow running until the issue is resolved.

{% hint style="info" %}
When a process flow version is deployed to a virtual environment (either [individually](/product-documentation/virtual-environments/implementing-virtual-environments/deploying-a-single-process-flow-to-a-virtual-environment.md) or [as part of a package](/product-documentation/virtual-environments/virtual-environment-packages/managing-packages/deploying-a-package.md)), it is enabled automatically. The steps detailed on this page are only required if you need to disable a deployed process flow for any reason and then enable it again later.
{% endhint %}

{% hint style="warning" %}
If you do NOT use virtual environments, different instructions apply; please refer to [Enabling & disabling a process flow](/product-documentation/process-flows/managing-process-flows/enabling-and-disabling-a-process-flow/enabling-and-disabling-a-process-flow-without-virtual-enviroments.md).
{% endhint %}

## Disabling a flow deployment for a virtual environment

When a process flow deployment is disabled for a virtual environment, the flow stops being initialised in that environment (keep in mind that you're disabling a *deployment* of a flow, not the flow itself - any deployments of this flow in other virtual environments will be unaffected).

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

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

### Disabling a process flow deployment from 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 disable (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/TBaHu2LbmzaiPbi8oNdv" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

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

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

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

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

Select the `disable` option:

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

### Disabling a process flow deployment from 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 disable - for example:

<div align="left"><figure><img src="/files/Y3OA8Xt9LQikNQoqlzbG" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

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

Select the `disable` option:

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

## Enabling a flow deployment for a virtual environment

When a process flow is enabled for a virtual environment, it will be initialised in that environment (as per any defined [triggers](/product-documentation/process-flows/building-process-flows/process-flow-shapes/standard-shapes/trigger-shape.md) or [API calls](broken://pages/qSaD1Ilhs087kRwx6QWu)). There are two ways to enable a flow deployment for a virtual environment:

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

### Enabling a process flow deployment from 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 enable (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/U8fdjHzzD7gVQKxpS7aO" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

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

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

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

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

Select the `enable` option:

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

### Enabling a process flow deployment from 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 enable - for example:

<div align="left"><figure><img src="/files/1cGseBzlwMkJQo0SQEg5" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

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

Select the `enable` option:

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