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 MetaData Hub
  • About Yandex MetaData Hub
    • Getting started
      • Viewing a connection
      • Creating a connection
      • Editing a connection
      • Configuring connection access permissions
      • Deleting a connection
      • Getting operation details
      • Canceling an operation
    • Service roles for access management
    • CLI reference
    • Terraform reference
  • Access management
  • Quotas and limits
  • Pricing policy
  • Public materials
  • Release notes
  1. Connection Manager
  2. Step-by-step guides
  3. Deleting a connection

Deleting a connection

Written by
Yandex Cloud
Updated at November 20, 2025
Management console
CLI
Terraform
API
  1. In the management console, select the folder in which to delete a connection.
  2. Select Yandex MetaData Hub.
  3. In the left-hand panel, select Connection manager.
  4. In the list of connections, click to the right of the connection you want to delete.
  5. Select 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.

To delete a connection:

  1. See the description of the CLI command for deleting a connection:

    yc metadata-hub connection-manager connection delete --help
    
  2. Delete your connection by running this command:

    yc metadata-hub connection-manager connection delete <connection_ID>
    

    You can get the connection ID with the list of connections in the folder.

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 relevant documentation on the Terraform website or its mirror.

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

To delete a connection created with Terraform:

  1. Open the current Terraform configuration file describing your infrastructure.

  2. Delete the connection description.

  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. Confirm updating the resources.

    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.

To delete a Connection Manager connection, use the Connection.Delete REST API method or the ConnectionService.Delete gRPC API call and provide the connection ID in the request.

To delete a Connection Manager connection, use the Connection.Delete REST API method or the ConnectionService.Delete gRPC API call and provide the connection ID in the request.

Was the article helpful?

Previous
Configuring connection access permissions
Next
Getting operation details
© 2025 Direct Cursus Technology L.L.C.