MCPcopy
hub / github.com/cloudfoundry/cli / PurgeServiceInstanceCommand

Struct PurgeServiceInstanceCommand

command/v7/purge_service_instance_command.go:12–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10const purgeServiceInstanceWarning = "WARNING: This operation assumes that the service broker responsible for this service instance is no longer available or is not responding with a 200 or 410, and the service instance has been deleted, leaving orphan records in Cloud Foundry's database. All knowledge of the service instance will be removed from Cloud Foundry, including service bindings and service keys."
11
12type PurgeServiceInstanceCommand struct {
13 BaseCommand
14
15 RequiredArgs flag.ServiceInstance `positional-args:"yes"`
16 Force bool `short:"f" long:"force" description:"Force deletion without confirmation"`
17 relatedCommands interface{} `related_commands:"delete-service, service-brokers, services"`
18}
19
20func (cmd PurgeServiceInstanceCommand) Execute(args []string) error {
21 if err := cmd.SharedActor.CheckTarget(true, true); err != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected