# Revert Changes To A File

If you, or a colleague, have made changes to a file that were made by mistake or you don't want, you can revert the changes and restore a previous *"good"* version of the file.

To revert the changes and restore a previous version of the file follow these steps:

{% stepper %}
{% step %}
From Windows File Explorer, right click the file in question to pop-up the context menu, expand the <code class="expression">space.vars.PRODUCT\_NAME</code> sub menu then click "Show the version history for this file"

<figure><img src="/files/jgo9oPGhTrqkti90zMqn" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
The version history dialog will pop-open and show the version history of the file. The latest version is always at the top of the list. The version number of the file, its modified date, who modified it and the file size are displayed

<figure><img src="/files/MaPZPLE0nMoZbMwoYPjr" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
If you're not sure which version to restore, select an item from the list, click the "Choose an action..." button then select the "Open the selected version in its associated application" option. In this example, as its a Word document, Word will open with that specific version of the document loaded in Word

<figure><img src="/files/Yc3nkLVbz6teFeBAZA73" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Some document types such as Word, Excel and AutoCAD DWG files support version comparison. To compare two versions, select the two items you want to compare from the list and click the "Compare the two selected versions" option from the "Choose an action..." button. The versions will be downloaded to your computer and then opened in the associated application for comparison automatically. In the example below, versions 1.0 and 2.0 of the Word document were selected to be compared. The red line text shows the difference between the two versions

<figure><img src="/files/pF53lp5gU7BadPbHtgwB" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
To restore a version (and revert the changes from all versions that follow it) select the version from the list, click the "Choose an action..." button then select "Restore the selected version"

<figure><img src="/files/Sqw8qBhGFCXZPyXnAVRv" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %} <code class="expression">space.vars.PRODUCT\_NAME</code> prompts you with a confirmation screen before proceeding with the restoration. Click Restore to confirm

<figure><img src="/files/oQrjYOxThWECtwNrPBJ8" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
The version you selected will now be restored. Click the Return button to go back and see how the version listing now looks

<figure><img src="/files/3gvcNeN6cZ6oMXhtsEHX" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
The version you restored (in this example, I chose to restore version 1.0) is created as a *new* version (version 4.0 in this example). Therefore, prior versions are still retained if you want to recall them, but, the version you selected to restore is now the current version of the file. Click the X button in the top right to close the window

<figure><img src="/files/2KBBRmMmgYzF6HGKSU57" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
If you head back to File Explorer, you will observe that the file modified date and size has updated to match the version you selected to restore

<figure><img src="/files/bA9lG45IOoLBVTha6tv3" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

{% hint style="info" %}
Two versions of an Excel spreadsheet can be compared, however, this is only supported if you have Microsoft 365 Apps for Enterprise installed as per the [Microsoft guidance here](https://support.microsoft.com/en-gb/office/compare-two-versions-of-a-workbook-by-using-spreadsheet-compare-0e1627fd-ce14-4c33-9ab1-8ea82c6a5a7e)
{% 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.zeedrive.com/user-guide/revert-changes-to-a-file.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.
