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

# 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 %}
