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
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Cloud CDN
  • Getting started
    • All guides
    • Connecting to a Cloud CDN provider
      • Creating an origin group
      • Editing an origin group
      • Connecting an origin group to a resource
      • Getting information about origins
      • Deleting an origin group
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Release notes
  • Troubleshooting

In this article:

  • Deleting a single origin group
  • Deleting multiple origin groups
  1. Step-by-step guides
  2. Origin groups
  3. Deleting an origin group

Deleting an origin group

Written by
Yandex Cloud
Updated at May 13, 2025
  • Deleting a single origin group
  • Deleting multiple origin groups

Deleting a single origin group

To delete an origin group:

Management console
CLI
Terraform
API
  1. In the management console, select the folder where you want to create a resource group.
  2. Select Cloud CDN.
  3. In the left-hand panel, go to Origin groups and select the group to delete.
  4. Click Delete in the bottom panel.
  5. In the window that opens, click Delete.

If you do not have the Yandex Cloud (CLI) command line interface 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. View a description of the CLI origin group delete command below:

    yc cdn origin-group delete --help
    
  2. Get a list of all origin groups in the default folder:

    yc cdn origin-group list --format yaml
    

    Result:

    - id: "90209"
      folder_id: b1g86q4m5vej********
      name: test-group-1
    ...
        origin_group_id: "90208"
        source: www.a1.com
        enabled: true
    
  3. Delete a group of origins in the default folder:

    yc cdn origin-group delete --id <origin_group_ID>
    

    For more information about the yc cdn origin-group delete command, see the CLI reference.

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

If you created an origin group using Terraform, you can delete it:

  1. In the command line, go to the folder with the Terraform configuration file.

  2. Delete the group description from the configuration file.

  3. Make sure the settings are correct.

    1. In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.

    2. Run this command:

      terraform validate
      

      Terraform will show any errors found in your configuration files.

  4. Delete the origin group.

    1. Run this command to view the planned changes:

      terraform plan
      

      If you described the configuration correctly, the terminal will display a list of the resources to update and their parameters. This is a verification step that does not apply changes to your resources.

    2. If everything looks correct, apply the changes:

      1. Run this command:

        terraform apply
        
      2. Confirm updating the resources.

      3. Wait for the operation to complete.

Use the delete REST API method for the OriginGroup resource or the OriginGroupService/Delete gRPC API call.

Deleting multiple origin groups

To delete multiple origin groups:

Management console
  1. In the management console, select the folder to delete multiple resource groups from.

  2. Select Cloud CDN.

  3. In the left-hand panel, navigate to **Origin groups and select the groups to delete.

    To delete all the groups, select the relevant option in the table header next to the Name field.

  4. Click Delete in the bottom panel.

  5. In the window that opens, click Delete.

Was the article helpful?

Previous
Getting information about origins
Next
All tutorials
Yandex project
© 2025 Yandex.Cloud LLC