code: func ParseRemoveConfig(cmd *cobra.Command, spec *api.ServiceSpec, flagName string) error {
  	flags := cmd.Flags()
  
  	if flags.Changed(flagName) {
  		configs, err := flags.GetStringSlice(flagName)
  		if err != nil {
  			return err
  		}
  
  		container := spec.Task.GetContainer()
  		if container == nil {
  			return nil
  		}
  
  		wantToDelete := make(map[string]struct{})
  
  		for _, config := range configs {
  			n, _, err := parseConfigString(config)
  			if err != nil {
  				return err
  			}
  
  			wantToDelete[n] = struct{}{}
  		}
  
  		configRefs := []*api.ConfigReference{}
  
  		for _, configRef := range container.Configs {
  			if _, ok := wantToDelete[configRef.ConfigName]; ok {
  				continue
  			}
  			configRefs = append(configRefs, configRef)
  		}
  
  		container.Configs = configRefs
  	}
  	return nil
  }
docs: // ParseRemoveConfig removes a set of configs from the task spec's config references