> 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-environments/deleting-a-virtual-environment.md).

# 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](/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) 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="/files/ehojXVO7PHkdq7ncW2vF" alt=""><figcaption></figcaption></figure></div>
{% endstep %}

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

Select the `delete` option:

<figure><img src="/files/uHomP0kXJNrmiBvyYRxA" 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="/files/GKxCOoLTns9N0g5Ht1jA" alt="" width="375"><figcaption></figcaption></figure></div>

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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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-environments/deleting-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.
