# 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](https://doc.wearepatchworks.com/product-documentation/virtual-environments/implementing-virtual-environments/configuring-a-virtual-environment-version/understanding-virtual-environment-versions).
{% 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="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2F1V0ZG4LsOan2FkGwG06h%2Fupdate%20ve%20version%201.png?alt=media&#x26;token=a3843bff-f546-46e1-99c6-e360c05ada9b" 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="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FmpwILZtRFIujABnM920D%2Fcopy%20draft%200.png?alt=media&#x26;token=90fa772b-3632-4c68-a802-a250bd68ac63" 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="https://2440044887-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLYNcUBVQwSkOMG6KjZfz%2Fuploads%2FC0VBsfVGPF8rMSh6YHVz%2Fdelete%20ve%20version%201.png?alt=media&#x26;token=caad51e9-56ec-4559-9bac-deb6687d1a02" 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 %}
