Data Warehouse Service
| Details
  • Cluster Management APIs
    • ChangeSecurityGroup
    • CreateCluster
    • DeleteCluster
    • DeleteDwsCluster
    • ListClusterDetails
    • ListClusters
    • ListNodeTypes
    • ResetPassword
    • ResizeCluster
    • RestartCluster
    • ShowClusterFlavor
    • ShowClusters
  • Snapshot Management APIs
    • CreateSnapshot
    • DeleteSnapshot
    • ListSnapshotDetails
    • ListSnapshots
    • RestoreCluster
  • Audit logs
    • DisableLtsLogs
    • EnableLtsLogs
    • ListLtsLogs
  • Cluster Management
    • ListConfigurationsAuditRecords
    • SaveClusterDescriptionInfo
    • ShowClusterRedistribution
    • ShowInstance
  • Host Monitoring
    • ListQueries
    • ListTablesStatistic
    • ShowQueryDetail
  • Resource Management
    • DeleteWorkloadPlan
    • ShowWorkloadPlan
    • StartWorkloadPlan
    • StopWorkloadPlan
  • Snapshot Management
    • AddSnapshotCrossRegionPolicy
    • DeleteSnapshotCrossRegionPolicy
    • ListSnapshotCrossRegion
    • ListSnapshotCrossRegionPolicy
    • RestoreTable
  • Upgrade Management
    • ExecuteClusterUpgradeAction
    • ListUpdatableVersion
    • ListUpdateRecord

DeleteCluster

DELETE
https://dws.af-north-1.myhuaweicloud.com/v1.0/{project_id}/clusters/{cluster_id}
Advanced
Required parameters only
Default
Encrypt sensitive parameters
*
Region
Parameters
*
cluster_id
*
project_id
Body
*{
*
keep_last_manual_snapshot
:
}
API Description

This API is used to delete clusters. All resources of the deleted cluster, including customer data, will be released. For data security, create a snapshot for the cluster that you want to delete before deleting the cluster.

URL
DELETE  https://dws.af-north-1.myhuaweicloud.com/v1.0/{project_id}/clusters/{cluster_id}
Request Parameters
NameTypeINMandatoryDescription
project_id
stringpath Yes

Project ID

cluster_id
stringpath Yes

ID of the cluster to be deleted.

Body Parameters
NameTypeMandatoryDescription
keep_last_manual_snapshot
integer Yes

Number of snapshots that you want to reserve for a cluster.

Response Parameters
Status code: 202

Normal

Status code: 400

Request error.

Status code: 401

Authorization failed.

Status code: 403

No operation permission.

Status code: 404

No resources found.

Status code: 500

Internal service error.

Status code: 503

The service is unavailable.

Example Request
Example 1
"DELETE https://{Endpoint}/v1.0/89cd04f168b84af6be287f71730fdb4b/clusters/4ca46bf1-5c61-48ff-b4f3-0ad4e5e3ba90"
{ "keep_last_manual_snapshot": 0 }
SDK
Click Data Warehouse Service (DWS) SDK to download the SDK in your programming language or view the SDK documentation. To learn how to install an SDK and perform authentication, read Usage.
Error Code

Outline

API Description
URL
Request Parameters
Response Parameters
Example Request
SDK
Error Code