github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/dataarts/v1.1/cluster/Delete.go (about) 1 package cluster 2 3 import "github.com/opentelekomcloud/gophertelekomcloud" 4 5 func Delete(client *golangsdk.ServiceClient, id string) (err error) { 6 // DELETE /v1.1/{project_id}/clusters/{cluster_id} 7 type KeepBackup struct { 8 KeepBackup int `json:"keep_last_manual_backup"` 9 } 10 _, err = client.DeleteWithBody(client.ServiceURL("clusters", id), KeepBackup{KeepBackup: 0}, nil) 11 return 12 }