# File versioning and recovery

LABDRIVE supports file-level versioning and deleted items recovery.&#x20;

If a container is using a storage class that supports versioning, every time a file is changed, all previous versions are also kept. If a file is deleted, it is also possible to undelete it.

### Listing previous versions of a file

To list previously existing versions of a file, **right-click over it,** select **Properties** and go to the **Versions** tab:

![](https://2290386118-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVFE6MnOK93sACDCxxx%2F-MfD_NwtEyuJZgGYvOeo%2F-MfDacTpOVNlu4hf9XrQ%2Fimage.png?alt=media\&token=9ee74c96-19d7-4b5d-857e-3766e04acc3e)

If you want to restore a previous version, select **Restore**

{% hint style="info" %}
The version restoring process usually takes a few minutes to complete. Restored files are moved to the same folder in which the current file is, with the following format: (original file name.extension)\_(version key)\_(timestamp).
{% endhint %}

### Deleting existing file versions

Versioned files use storage space. If you want to delete the previous versions of a file, **right-click over it,** select **Properties** and go to the **Versions** tab and select the **Delete** icon:

![](https://2290386118-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVFE6MnOK93sACDCxxx%2F-MfDajKWRobyHJYxYsRH%2F-MfDcPro7bORmBBFEiZL%2Fimage.png?alt=media\&token=6114a494-664b-478c-9306-356287829760)

### Recovering deleted files

To recover deleted files in a container, go to the **Storage** tab and scroll down to the **Deleted Items** section. A list of the deleted files will be shown:

![](https://2290386118-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVFE6MnOK93sACDCxxx%2F-MfDajKWRobyHJYxYsRH%2F-MfDbck1CqHCJNdc-5NR%2Fimage.png?alt=media\&token=f672bf64-a9ab-47b1-a342-8353393ff000)

To restore a file, select **Restore**

### **Deleting deleted files**

If you want to delete all previously deleted files from a container, go to the **Storage** tab and scroll down to the **Deleted Items** section. Select the **Delete** icon:

![](https://2290386118-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MVFE6MnOK93sACDCxxx%2F-MfDcX7VxCxs8K09Wxoc%2F-MfDcuESGXwB38D3f3RV%2Fimage.png?alt=media\&token=4948cf94-fb1f-41a4-b5e2-e3cc7ec23a01)

{% hint style="danger" %}
Once deleted, the versions or the deleted files, it is impossible to recover them. Files are lost forever.
{% endhint %}

{% hint style="danger" %}
Changing the storage class or type for a file, removes all its previos versions, making impossible to recover previous ones.
{% endhint %}
