MCPcopy Index your code
hub / github.com/cloudfoundry/cli / DeleteService

Method DeleteService

cf/api/services.go:197–203  ·  view source on GitHub ↗
(instance models.ServiceInstance)

Source from the content-addressed store, hash-verified

195}
196
197func (repo CloudControllerServiceRepository) DeleteService(instance models.ServiceInstance) (apiErr error) {
198 if len(instance.ServiceBindings) > 0 || len(instance.ServiceKeys) > 0 {
199 return errors.NewServiceAssociationError()
200 }
201 path := fmt.Sprintf("/v2/service_instances/%s?%s", instance.GUID, "accepts_incomplete=true")
202 return repo.gateway.DeleteResource(repo.config.APIEndpoint(), path)
203}
204
205func (repo CloudControllerServiceRepository) PurgeServiceOffering(offering models.ServiceOffering) error {
206 url := fmt.Sprintf("/v2/services/%s?purge=true", offering.GUID)

Callers

nothing calls this directly

Calls 3

DeleteResourceMethod · 0.80
APIEndpointMethod · 0.65

Tested by

no test coverage detected