code: func RemoveKubeconifg(tc *client.TeleportClient, clusterName string) error {
  	// Load existing kubeconfig from disk.
  	config, err := LoadKubeConfig()
  	if err != nil {
  		return trace.Wrap(err)
  	}
  
  	// Remove Teleport related AuthInfos, Clusters, and Contexts from kubeconfig.
  	delete(config.AuthInfos, clusterName)
  	delete(config.Clusters, clusterName)
  	delete(config.Contexts, clusterName)
  
  	// Take an element from the list of contexts and make it the current context.
  	if len(config.Contexts) > 0 {
  		var currentContext *clientcmdapi.Context
  		for _, cc := range config.Contexts {
  			currentContext = cc
  			break
  		}
  		config.CurrentContext = currentContext.Cluster
  	}
  
  	// Update kubeconfig on disk.
  	return SaveKubeConfig(*config)
  }
docs: // RemoveKubeconifg removes Teleport configuration from kubeconfig.