# Cleanup of deduplication data

## Cleanup function o**verview**

The cleanup function in **Xopero ONE** removes residual files left after deduplication. While deduplication reduces storage requirements by eliminating duplicate data blocks, it can also leave behind orphaned files with no further use. Over time, these files may accumulate and occupy space required for new backups, which can result in reduced storage performance.

{% hint style="warning" %}
It is important to note that after removing backup plans (or parts of them) that used deduplication, you should run cleanup.
{% endhint %}

{% hint style="warning" %}
Starting from **version 2.0.0**, **disk image** and **VMware** backups use a modernized data format. As new backups are created in this format, **legacy deduplication data becomes obsolete**. Once your retention policy clears older backup versions, we recommend running a **cleanup** to remove redundant data from both the storage and local cache.
{% endhint %}

***

## Running the cleanup

{% hint style="danger" %}
The storage remains unavailable <mark style="color:$danger;">**for the entire cleanup process**</mark>, which can be time-consuming. During this period, <mark style="color:$danger;">**backup tasks cannot be performed**</mark>.
{% endhint %}

{% stepper %}
{% step %}
Login to [**XMS**](#user-content-fn-1)[^1] and go to **Storages** tab.  &#x20;
{% endstep %}

{% step %}
Select the storage, then click **Edit storage** button to access its advanced settings.

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FaBSqiKduxMxXwb5A2DmA%2Fimage.png?alt=media&#x26;token=f23fc473-b7eb-47c8-b0ed-926bef1c3a80" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
In **Edit storage** side panel, select **Start cleanup**.

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FHhBgRVi8xj4y3OGzAFyh%2Fimage.png?alt=media&#x26;token=e3a3cee6-8102-48b8-9e6e-771a88c0f801" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
Confirm the action and click **Run now** to begin the process.

<figure><img src="https://319733277-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0CBTl43C3OO6ySL1DJ6k%2Fuploads%2FawpU4PMFRZj4T2RO5zUB%2Fimage.png?alt=media&#x26;token=67a26c0d-b696-4a8f-9b1a-39ebbc38d013" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
The system will identify and remove files left after deduplication, freeing up storage space. During this process, <mark style="color:$danger;">the storage will be temporarily unavailable</mark>.
{% endstep %}
{% endstepper %}

[^1]: Xopero ONE Management Service
