# Deleting a virtual environment version

## Introduction

If required, you can delete `draft` and/or `inactive` virtual environment configuration versions.

{% hint style="info" %}
If you're not familiar with the lifecycle of a virtual environment configuration version, please refer to [Understanding virtual environment versions](/product-documentation/virtual-environments/implementing-virtual-environments/configuring-a-virtual-environment-version/understanding-virtual-environment-versions.md).
{% endhint %}

## Need to know

* When an existing version is deleted, any subsequent version numbers are reassigned to close the gap. Existing `IDs` do not change.

## 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 name associated with the virtual environment that you want to access - for example:

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

{% step %}
**Access options for an existing draft or inactive version**

Move down to the `configuration versions` panel and click the ellipsis icon associated with an existing `draft` or `inactive` version - for example:

<div align="left"><figure><img src="/files/OYyXfMIu49l5pxezsTa4" alt=""><figcaption></figcaption></figure></div>

{% hint style="info" %}
If there isn't a current draft version, you can [create a new one from scratch](#create-draft-from-scratch). Alternatively, you can use the [create draft from version](#create-draft-from-version) option to copy the setup for an existing inactive or deployed version to a draft version.
{% endhint %}
{% endstep %}

{% step %}
**Delete the selected version**

Select the `delete` option to remove the selected version:

<figure><img src="/files/UaJc6lhyAXdeGwzmwsh3" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
When an existing version is deleted, any subsequent version numbers are reassigned to close the gap. Existing `IDs` do not change.
{% endhint %}
{% 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-configuration-versions/deleting-a-virtual-environment-version.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.
