github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/css/v1/snapshots/Delete.go (about) 1 package snapshots 2 3 import "github.com/opentelekomcloud/gophertelekomcloud" 4 5 // Delete will delete the existing Snapshot ID with the provided ID. 6 func Delete(client *golangsdk.ServiceClient, clusterId, id string) (err error) { 7 _, err = client.Delete(client.ServiceURL("clusters", clusterId, "index_snapshot", id), &golangsdk.RequestOpts{ 8 OkCodes: []int{200}, 9 MoreHeaders: map[string]string{"Content-Type": "application/json"}, 10 }) 11 return 12 }