# File versioning and recovery

**LIBSAFE Go** supports file-level versioning and deleted items recovery.

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://3176249975-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MgBifM53hLTD0q9p4fr%2F-MgkBYPRB2ppaey2AnqK%2F-MgkDaXcBvPeZd17pslH%2Fimage.png?alt=media\&token=c8efc103-8022-4ee0-bda7-b7e7d3b30c8a)

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://3176249975-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MgBifM53hLTD0q9p4fr%2F-MgkBYPRB2ppaey2AnqK%2F-MgkDcmFsAuZnS-2HH_V%2Fimage.png?alt=media\&token=eb7db0f1-be4e-4250-8a45-bb26661c20c4)

## 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://3176249975-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MgBifM53hLTD0q9p4fr%2F-MgkBYPRB2ppaey2AnqK%2F-MgkDjlWzXGNYNfl7cQ6%2Fimage.png?alt=media\&token=03fc9237-11b4-4aad-9c18-60adf7fdf628)

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://3176249975-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MgBifM53hLTD0q9p4fr%2F-MgkBYPRB2ppaey2AnqK%2F-MgkDnFosYAJYcQouFOs%2Fimage.png?alt=media\&token=8ac5b74a-0be1-4f94-979b-6bd5b83fcebf)

{% 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 previous versions, making it impossible to recover previous ones.
{% endhint %}
