Deleting a connection
- In the management console
, select the folder in which to delete a connection. - Select Yandex MetaData Hub.
- In the left-hand panel, select
Connection manager. - In the list of connections, click
to the right of the connection you want to delete. - 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:
-
See the description of the CLI command for deleting a connection:
yc metadata-hub connection-manager connection delete --help -
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
Terraform is distributed under the Business Source License
For more information about the provider resources, see the relevant documentation on the Terraform
If you do not have Terraform yet, install it and configure the Yandex Cloud provider.
To delete a connection created with Terraform:
-
Open the current Terraform configuration file describing your infrastructure.
-
Delete the connection description.
-
Make sure the settings are correct.
-
In the command line, navigate to the directory that contains the current Terraform configuration files defining the infrastructure.
-
Run this command:
terraform validateTerraform will show any errors found in your configuration files.
-
-
Confirm updating the resources.
-
Run this command to view the planned changes:
terraform planIf 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.
-
If everything looks correct, apply the changes:
-
Run this command:
terraform apply -
Confirm updating the resources.
-
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.