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).
Run the following commands to delete your deployment and reclaim all GCPresources:
cd ${KFAPP}
# If you want to delete all the resources, including storage:
kfctl delete all --delete_storage
# If you want to preserve storage, which contains metadata and information
# from Kubeflow Pipelines:
kfctl delete all
The environment variable ${KFAPP}
must contain the name of the directorythat contains your Kubeflow configurations. This directory was created when youdeployed Kubeflow.
- The name of the directory is the same as the name of your Kubeflow deployment.If you deployed Kubeflow using the UI, thevalue of
${KFAPP}
is the value of the Deployment name field on the UI. - If you deployed Kubeflow using the CLI, usethe same value as you used when you ran
kfctl init
.
You should consider preserving storage if you may want to relaunchKubeflow in the future and restore the data from yourpipelines.