Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud CDN
  • Getting started
    • All guides
      • Creating an origin group
      • Updating an origin group
      • Adding an origin group to a resource
      • Getting information about origins
      • Deleting an origin group
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics for the EdgeCDN provider
  • Monitoring metrics for the Yandex Cloud CDN provider
  • 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 July 14, 2025
  • Deleting a single origin group
  • Deleting multiple origin groups

Deleting a single origin groupDeleting 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 installed yet, install and initialize it.

By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.

  1. View the description of the CLI command to delete an origin group:

    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 an origin group 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 the Yandex Cloud provider.

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

  1. In the command line, go to the directory 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 groupsDeleting 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
© 2025 Direct Cursus Technology L.L.C.