Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud Backup
  • Getting started
    • All guides
    • Activating the service
      • Creating a policy
      • Updating a policy
      • Linking a VM or BareMetal server to a policy
      • Getting information about a policy
      • Unlinking a VM or BareMetal server from a policy
      • Deleting a policy
    • Viewing operations with resources
    • Viewing backup statistics
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • Troubleshooting
  1. Step-by-step guides
  2. Backup policies
  3. Deleting a policy

Deleting a backup policy

Written by
Yandex Cloud
Updated at May 5, 2025
Management console
CLI
Terraform
API
  1. In the management console, select the folder you want to delete a backup policy from.
  2. In the list of services, select Cloud Backup.
  3. Go to the Backup policies tab.
  4. Click next to the backup policy you want to delete and select Delete.
  5. Confirm the backup policy deletion.

If you do not have the Yandex Cloud CLI yet, install and initialize it.

The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID> command. You can specify a different folder using the --folder-name or --folder-id parameter.

  1. See the description of the CLI command to delete a backup policy:

    yc backup policy delete --help
    
  2. Get the ID of the backup policy you want to delete:

    yc backup policy list
    

    Result:

    +----------------------+----------------------+---------+---------+---------------------+---------------------+
    |          ID          |      FOLDER ID       |  NAME   | ENABLED |     CREATED AT      |     UPDATED AT      |
    +----------------------+----------------------+---------+---------+---------------------+---------------------+
    | abc7n3wln123******** | ghi681qpe789******** | policy1 | true    | 2023-07-03 09:12:02 | 2023-07-03 09:12:43 |
    | deflqbiwc456******** | ghi681qpe789******** | policy2 | true    | 2023-07-07 14:58:23 | 2023-07-07 14:58:23 |
    +----------------------+----------------------+---------+---------+---------------------+---------------------+
    
  3. Delete the backup policy by specifying its ID:

    yc backup policy delete <backup_policy_ID>
    

    For more information about the command, see the CLI reference.

With Terraform, you can quickly create a cloud infrastructure in Yandex Cloud and manage it using configuration files. These files store the infrastructure description written in HashiCorp Configuration Language (HCL). If you change the configuration files, Terraform automatically detects which part of your configuration is already deployed, and what should be added or removed.

Terraform is distributed under the Business Source License. The Yandex Cloud provider for Terraform is distributed under the MPL-2.0 license.

For more information about the provider resources, see the documentation on the Terraform website or mirror website.

If you do not have Terraform yet, install it and configure its Yandex Cloud provider.

To delete a backup policy created with Terraform:

  1. Open the Terraform configuration file and delete the fragment with the yandex_backup_policy resource description:

    Below is an example with the description of the yandex_backup_policy resource in the Terraform configuration
    resource "yandex_backup_policy" "my_policy" {
        archive_name                      = "[<VM_or_BareMetal_server_name>]-[<plan_ID>]-[<unique_ID>]"
        cbt                               = "USE_IF_ENABLED"
        compression                       = "NORMAL"
        fast_backup_enabled               = true
        format                            = "AUTO"
        multi_volume_snapshotting_enabled = true
        name                              = "<backup_policy_name>"
        performance_window_enabled        = true
        preserve_file_security_settings   = true
        quiesce_snapshotting_enabled      = true
        silent_mode_enabled               = true
        splitting_bytes                   = "9223372036854775807"
        vss_provider                      = "NATIVE"
    
        reattempts {
            enabled      = true
            interval     = "1m"
            max_attempts = 10
        }
    
        retention {
            after_backup = false
    
            rules {
                max_age       = "365d"
                repeat_period = []
            }
        }
    
        scheduling {
            enabled              = false
            max_parallel_backups = 0
            random_max_delay     = "30m"
            scheme               = "ALWAYS_INCREMENTAL"
            weekly_backup_day    = "MONDAY"
    
            execute_by_time {
                include_last_day_of_month = true
                monthdays                 = []
                months                    = [1,2,3,4,5,6,7,8,9,10,11,12]
                repeat_at                 = ["04:10"]
                repeat_every              = "30m"
                type                      = "MONTHLY"
                weekdays                  = []
            }
        }
    
        vm_snapshot_reattempts {
            enabled      = true
            interval     = "1m"
            max_attempts = 10
        }
    } 
    

    For more information about the yandex_backup_policy resource parameters, see the provider documentation.

  2. Apply the changes:

    1. In the terminal, change to the folder where you edited the configuration file.

    2. Make sure the configuration file is correct using the command:

      terraform validate
      

      If the configuration is correct, the following message is returned:

      Success! The configuration is valid.
      
    3. Run the command:

      terraform plan
      

      The terminal will display a list of resources with parameters. No changes are made at this step. If the configuration contains errors, Terraform will point them out.

    4. Apply the configuration changes:

      terraform apply
      
    5. Confirm the changes: type yes in the terminal and press Enter.

    You can check the update using the management console or this CLI command:

    yc backup policy list
    

To delete a backup policy, use the delete REST API method for the Policy resource or the PolicyService/Delete gRPC API call.

Was the article helpful?

Previous
Unlinking a VM or BareMetal server from a policy
Next
Creating a backup
© 2025 Direct Cursus Technology L.L.C.