Closed huikang closed 7 years ago
func (s *serviceInstance) Delete(instanceGUID string, asyncs ...bool) error {
async := true
if len(asyncs) > 0 {
async := asyncs[0]
}
rawURL := fmt.Sprintf("/v2/service_instances/%s?accepts_incomplete=true&async=%t", instanceGUID, async)
_, err := s.client.Delete(rawURL)
return err
}
I think this will have minimal impact on existing clients.
Some services e.g., Watson discovery and conversation has to be deleted with the parameter
async=true
. This parameter should be exposed in the method definition, e.g.,