code: func ParseRemoveSecret(cmd *cobra.Command, spec *api.ServiceSpec, flagName string) error {
  	flags := cmd.Flags()
  
  	if flags.Changed(flagName) {
  		secrets, err := flags.GetStringSlice(flagName)
  		if err != nil {
  			return err
  		}
  
  		container := spec.Task.GetContainer()
  		if container == nil {
  			return nil
  		}
  
  		wantToDelete := make(map[string]struct{})
  
  		for _, secret := range secrets {
  			n, _, err := parseSecretString(secret)
  			if err != nil {
  				return err
  			}
  
  			wantToDelete[n] = struct{}{}
  		}
  
  		secretRefs := []*api.SecretReference{}
  
  		for _, secretRef := range container.Secrets {
  			if _, ok := wantToDelete[secretRef.SecretName]; ok {
  				continue
  			}
  			secretRefs = append(secretRefs, secretRef)
  		}
  
  		container.Secrets = secretRefs
  	}
  	return nil
  }
docs: // ParseRemoveSecret removes a set of secrets from the task spec's secret references