github.com/ablease/cli@v6.37.1-0.20180613014814-3adbb7d7fb19+incompatible/command/v2/purge_service_offering_command.go (about)

     1  package v2
     2  
     3  import (
     4  	"code.cloudfoundry.org/cli/command"
     5  	"code.cloudfoundry.org/cli/command/flag"
     6  	"code.cloudfoundry.org/cli/command/translatableerror"
     7  )
     8  
     9  type PurgeServiceOfferingCommand struct {
    10  	RequiredArgs    flag.Service `positional-args:"yes"`
    11  	Force           bool         `short:"f" description:"Force deletion without confirmation"`
    12  	Provider        string       `short:"p" description:"Provider"`
    13  	usage           interface{}  `usage:"CF_NAME purge-service-offering SERVICE [-p PROVIDER] [-f]\n\nWARNING: This operation assumes that the service broker responsible for this service offering is no longer available, and all service instances have been deleted, leaving orphan records in Cloud Foundry's database. All knowledge of the service will be removed from Cloud Foundry, including service instances and service bindings. No attempt will be made to contact the service broker; running this command without destroying the service broker will cause orphan service instances. After running this command you may want to run either delete-service-auth-token or delete-service-broker to complete the cleanup."`
    14  	relatedCommands interface{}  `related_commands:"marketplace, purge-service-instance, service-brokers"`
    15  }
    16  
    17  func (PurgeServiceOfferingCommand) Setup(config command.Config, ui command.UI) error {
    18  	return nil
    19  }
    20  
    21  func (PurgeServiceOfferingCommand) Execute(args []string) error {
    22  	return translatableerror.UnrefactoredCommandError{}
    23  }