This page explains how to view and delete existing backups of Harbor instances
in Google Distributed Cloud (GDC) air-gapped.

Delete unused Harbor backups to free up storage space and reduce costs. This
best practice simplifies backup management and can improve the performance of
backups.

## Before you begin

You must have an existing backup. You create backups by doing one of the
following:

- **Automatically** : schedule automatic backups using a backup plan. For more information, see [Create a backup plan](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/platform-application/pa-ao-operations/harbor-backup/create-backup-plan-harbor.md.txt).
- **Manually** : create manual backups on demand. For more information, see [Create a manual backup](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/platform-application/pa-ao-operations/harbor-backup/create-manual-backup-harbor.md.txt).

### Required IAM roles

Request the necessary permissions from your IAM Project Admin. Enforce least
privilege access by requesting only the roles required for your specific tasks.

- **Secret Admin** (`secret-admin`): get, list, create, update, patch, and delete all Kubernetes secrets within the project namespace. This is a project-level permission that includes the sensitive authentication credentials needed by the backup repository.
- **Harbor Instance Admin** (`harbor-instance-admin`): get, list, watch, create, update, patch, and delete Harbor instances, backup repositories, backup plans, backups, and restores within a specific project namespace.

## View an existing backup

To view an existing backup, follow these steps:

1. Sign in to the GDC console.
2. In the navigation menu, click **Backup for harbor instance**.
3. Click **Backups**.
4. View existing backups in the table.
5. To view the details of a single backup, click the name of the backup in the table.

## Delete a backup

You can delete backups in two ways:

- **Automatically**: GDC automatically deletes backups after the number of days in their backup plan retention policy is reached.
- **Manually**: you delete backups manually.

To manually delete an existing backup, follow these steps:

1. Sign in to the GDC console.
2. In the navigation menu, click **Backup for harbor instance**.
3. Click **Backups**.
4. Click the name of the backup you want to delete.
5. Click **Delete backup**.
6. In the confirmation dialog, enter the name of the backup you want to delete.
7. Click **Delete backup**.

> [!WARNING]
> **Warning:** This operation can't be undone. Deleting a backup permanently removes it and all its data. You can no longer create restores from this backup.

## What's next

- [Create a restore](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/platform-application/pa-ao-operations/harbor-backup/create-restore-harbor.md.txt)