Delete using CLI

Deleting Kubeflow from GCP using the command line interface (CLI)

This page shows you how to use the CLI to delete a Kubeflow deployment onGoogle Cloud Platform (GCP).

Before you start

This guide assumes the following settings:

  • The ${KF_DIR} environment variable contains the path toyour Kubeflow application directory, which holds your Kubeflow configurationfiles. For example, /opt/my-kubeflow/.
  1. export KF_DIR=<path to your Kubeflow application directory>
  • The ${CONFIG_FILE} environment variable contains the path to yourKubeflow configuration file.
  1. export CONFIG_FILE=${KF_DIR}/kfctl_gcp_iap.v1.0.0.yaml

Or:

  1. export CONFIG_FILE=${KF_DIR}/kfctl_gcp_basic_auth.v1.0.0.yaml

For further background about the above settings, see the guide todeploying Kubeflow with the CLI.

Deleting your deployment

Run the following commands to delete your deployment and reclaim all GCPresources:

  1. # If you want to delete all the resources, including storage:
  2. kfctl delete -f ${CONFIG_FILE} --delete_storage
  3. # If you want to preserve storage, which contains metadata and information
  4. # from Kubeflow Pipelines:
  5. kfctl delete -f ${CONFIG_FILE}

You should consider preserving storage if you may want to relaunchKubeflow in the future and restore the data from yourpipelines.

Feedback

Was this page helpful?

Glad to hear it! Please tell us how we can improve.

Sorry to hear that. Please tell us how we can improve.

Last modified 10.02.2020: #1621 : fixed list formatting (#1645) (df7a2e61)