code: func (c *Cluster) RemoveConfig(input string) error {
  	return c.lockedManagerAction(func(ctx context.Context, state nodeState) error {
  		config, err := getConfig(ctx, state.controlClient, input)
  		if err != nil {
  			return err
  		}
  
  		req := &swarmapi.RemoveConfigRequest{
  			ConfigID: config.ID,
  		}
  
  		_, err = state.controlClient.RemoveConfig(ctx, req)
  		return err
  	})
  }
docs: // RemoveConfig removes a config from a managed swarm cluster.