# 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:

![](/files/-MgkDaXcBvPeZd17pslH)

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:

![](/files/-MgkDcmFsAuZnS-2HH_V)

## 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:

![](/files/-MgkDjlWzXGNYNfl7cQ6)

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:

![](/files/-MgkDnFosYAJYcQouFOs)

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


---

# 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://docs.libnova.com/libsafe-go/get-started/file-versioning-and-recovery.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.
