---
title: "Delete backups"
sidebar_label: "Delete backups"
sidebar_position: 8
description: "How to delete a specific backup or clear a backup repository"
---

import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'
import {TabItemLabel} from '@selectel/docux/components'
import Formbricks from '@theme/MDXComponents/Formbricks'

# Delete backups

If the backup repository is full, new backups will not be created. To have old backups automatically removed when creating new ones, configure the Retention Policy — either the number of recovery points to keep or the number of days backups will be stored — during [backup configuration](/veeam-agent/connect-veeam-agent.mdx#configure-backup).

To check the repository status, you can [view resource consumption statistics](/veeam-agent/manage/check-statistics.mdx).

## Delete backup \{#delete-backup}

You can delete a specific backup from the machine on which it was created. For this, the following conditions must be met:

* a backup agent must be installed on the machine, and the Selectel cloud repository must be available;
* in the [Veeam Service Provider Console](https://vac.selectel.ru) portal, the machine must be in the `Online` status.

You can delete all backups from the cloud by [deleting backup jobs](/veeam-agent/manage/manage-backup-jobs.mdx#delete-backup-job) on the Veeam Service Provider Console portal.

<Tabs queryString="os">
  <TabItem value="linux" default>
    <TabItemLabel>
      Linux
    </TabItemLabel>

    Learn more about deleting backups in the [Deleting Backups](https://helpcenter.veeam.com/docs/agentforlinux/userguide/backup_delete.html?ver=60) section of the Veeam Agent for Linux documentation.

    1. Display a list of backups:

       ```bash
       sudo veeamconfig backup list --all
       ```

    2. Copy the `backup_id`, which is the identifier of the required backup.

    3. Delete the backup job:

       ```bash
       sudo veeamconfig backup delete --id <backup_id> --purge
       ```

       Specify `<backup_id>` — the backup identifier.
  </TabItem>

  <TabItem value="windows">
    <TabItemLabel>
      Windows
    </TabItemLabel>

    Learn more about deleting backups in the [Deleting Backups](https://helpcenter.veeam.com/docs/agentforwindows/userguide/backup_delete.html?ver=60) section of the Veeam Agent for Windows documentation.

    Run the command as an administrator:

    ```bash
    "C:\Program Files\Veeam\Endpoint Backup\Veeam.EndPoint.Manager.exe" /deletebackup
    ```
  </TabItem>
</Tabs>

## Clear backup repository \{#clean-repository}

After clearing the backup repository, the information in [resource consumption statistics](/veeam-agent/manage/check-statistics.mdx) will not update immediately. This will happen after the first successful backup job execution.

1. [Delete backup jobs](/veeam-agent/manage/manage-backup-jobs.mdx#delete-backup-job) along with the backups themselves.
2. If repository space is not freed up or only partially freed up, [create a ticket](https://my.selectel.ru/tickets/create) to have the repository cleared.

<Formbricks />
