- Documentation Overview
- Getting started with DoubleCloud
- Overview
- Get started
- All instructions
- Create a cluster
- Manage a cluster
- Start and stop a cluster
- Reset cluster password
- Monitor a cluster
- Delete a cluster
- Manage users
- Manage roles
- Manage allowlists
- Change ClickHouse® version
- Create and manage backups
- View a list of operations
- Manage ClickHouse® logs
- Configure cluster maintenance
- Troubleshoot an overloaded cluster
- WebSQL
- DBMS settings reference
- Quotas and Limits
- Glossary
- Resolve issues with ClickHouse
- Questions and answers
Delete a Managed ClickHouse® cluster
Console
API
Python
Go
-
Go to the Clusters
-
Select the cluster you want to delete.
-
Click Delete in the upper-right corner of the page.
-
Check the I want to delete cluster [your cluster name] box.
-
Click Delete.
Use the ClusterService
delete method and pass the cluster ID in the cluster_id
request parameter.
To find the cluster ID, get a list of clusters in the project.
import json
import logging
import doublecloud
from doublecloud.clickhouse.v1.cluster_service_pb2 import DeleteClusterRequest
from doublecloud.clickhouse.v1.cluster_service_pb2_grpc import ClusterServiceStub
def delete_cluster(sdk, cluster_id):
cluster_service = sdk.client(ClusterServiceStub)
return cluster_service.Delete(DeleteClusterRequest(cluster_id=cluster_id))
func deleteCluster(ctx context.Context, dc *dc.SDK, clusterID string) (*operation.Operation, error) {
op, err := dc.WrapOperation(dc.ClickHouse().Cluster().Delete(ctx, &clickhouse.DeleteClusterRequest{ClusterId: clusterID}))
if err != nil {
log.Fatal(err)
}
err = op.Wait(ctx)
return op, err
}
For more in-depth examples, check out DoubleCloud API Go SDK repository
Previous
Next