class_docstr: Helper methods for Kubeflow Handler.
class_docstr_tok: ["Helper","methods","for","Kubeflow","Handler","."]
docstr: Delete pipeline in Kubeflow.
docstr_tok: ["Delete","pipeline","in","Kubeflow","."]
code: def delete_pipeline(self) -> None:
      """Delete pipeline in Kubeflow."""
  
      pipeline_name = self.flags_dict[labels.PIPELINE_NAME]
      # Check if pipeline exists on server.
      pipeline_id = self._get_pipeline_id(pipeline_name, check=True)
  
      # Delete pipeline for kfp server.
      self._client.delete_pipeline(pipeline_id)
  
      # Delete experiment from server.
      experiment_id = self._get_experiment_id(
          self._get_experiment_name(pipeline_name)
      )
      self._client._experiment_api.delete_experiment(
          experiment_id
      )  # pylint: disable=protected-access
  
      click.echo("Pipeline " + pipeline_name + " deleted successfully.")
  
imports: import functools
  import os
  import sys
  import time
  from typing import Any, Dict, Optional
  import click
  import kfp
  from tfx.orchestration.kubeflow import kubeflow_dag_runner
  from tfx.tools.cli import labels
  from tfx.tools.cli.container_builder import builder
  from tfx.tools.cli.handler import base_handler
  from tfx.tools.cli.handler import kubeflow_dag_runner_patcher
label_desc: Use image node_id 5 for calling the KubeflowHandler obj's underlying member method code with example usage: obj.delete_pipeline() without return types