Deleting a backup
Tip
To delete backups, the folder must contain at least one resource connected to Cloud Backup. If there are no such resources, create a temporary new VM connected to Cloud Backup and delete the backups.
The deletion process is asynchronous, so wait until it is over. Before stopping or removing the last VM or server connected to Cloud Backup, make sure the the backup list is empty.
To delete a backup:
Note
Currently, you can delete a backup of an external resource using the Yandex Cloud CLI and API.
- In the management console
, select the folder containing the backup. - Navigate
to Cloud Backup. - In the left-hand panel, select
Backups. - Depending on the resource you want to delete the backup for, select the Virtual machines or BareMetal servers tab.
- Click
in the row with the backup you need to delete and select Delete. - Confirm the deletion.
If you do not have the Yandex Cloud CLI yet, install and initialize it.
The folder used by default is the one specified when creating the CLI profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also specify a different folder for any command using --folder-name or --folder-id. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.
-
View a description of the CLI delete backup command:
yc backup backups delete --help -
Get the ID of the backup to delete:
yc backup backups listResult:
+--------------------------------------+--------------------------------------+----------------------+--------------------------------------+----------------------+------+------------------+--------+---------------------+ | ID | ARCHIVE ID | COMPUTE INSTANCE ID | RESOURCE ID | POLICY ID | TYPE | DISKS | SIZE | CREATED AT | +--------------------------------------+--------------------------------------+----------------------+--------------------------------------+----------------------+------+------------------+--------+---------------------+ | ab55286e-795f-44dc-90af-b718******** | ef3e8144-fb65-6a59-5ec1-3162******** | jklp0o9i8012******** | 2465BE59-5687-4539-9589-DF7E******** | abc7n3wln123******** | FULL | Disk 1 (15.0 GB) | 1.5 GB | 2023-07-07 16:00:15 | | cd50e147-7dfa-449f-816b-67f8******** | gh06b195-c095-1234-7809-0700******** | mnoa5s6d8345******** | 135C519D-B5A3-4781-8DFA-40B3******** | deflqbiwc456******** | FULL | Disk 1 (15.0 GB) | 1.6 GB | 2023-07-03 10:00:10 | +--------------------------------------+--------------------------------------+----------------------+--------------------------------------+----------------------+------+------------------+--------+---------------------+ -
Get the ID of the resource whose backup you need to delete:
yc backup vm listResult:
+----------------------+--------------------------------------+--------+---------+--------+-----------------+----------------+---------------------+---------------------+--------+---------------------+---------------------+-------------+ | INSTANCE ID | RESOURCE ID | ONLINE | ENABLED | STATUS | STATUS PROGRESS | STATUS DETAILS | LAST BACKUP TIME | NEXT BACKUP TIME | ACTIVE | CREATED AT | UPDATED AT | TYPE | +----------------------+--------------------------------------+--------+---------+--------+-----------------+----------------+---------------------+---------------------+--------+---------------------+---------------------+-------------+ | ly5mzirn6xhd******** | 4fc0d855-b76c-****-99a4-bf01******** | true | true | IDLE | 0 | | | | true | 2026-04-29 05:45:34 | 2026-04-29 05:54:21 | BMS | | epd930eo5156******** | 6c58577d-409d-****-bc10-f464******** | true | true | IDLE | 0 | | | | true | 2026-04-29 08:46:47 | 2026-04-29 08:54:00 | COMPUTE | | cdgd246kiae3******** | d1fdd342-0ea8-****-9906-fa6c******** | false | true | IDLE | 0 | | 2026-04-27 13:07:05 | 2026-04-27 13:07:05 | true | 2026-04-24 14:23:06 | 2026-04-29 08:54:33 | EXTERNAL_VM | +----------------------+--------------------------------------+--------+---------+--------+-----------------+----------------+---------------------+---------------------+--------+---------------------+---------------------+-------------+ -
Delete the backup:
yc backup backups delete \ --backup-id <backup_ID> \ --instance-id <resource_ID>Where:
--backup-id: ID of the backup to delete.--instance-id: ID of the Compute Cloud VM, BareMetal server, or external resource whose backup you need to delete.
For more information about this command, see the CLI reference.
Use the delete REST API method for the Backup resource or the BackupService/Delete gRPC API call.