Uninstalling a cluster on GCP

    You can remove a cluster that uses installer-provisioned infrastructure from your cloud.

    Prerequisites

    • You have a copy of the installation program that you used to deploy the cluster.

    1. From the directory that contains the installation program on the computer that you used to install the cluster, run the following command:

    2. Optional: Delete the <installation_directory> directory and the OKD installation program.

    Deleting GCP resources with the Cloud Credential Operator utility

    To clean up resources after uninstalling an OKD cluster with the Cloud Credential Operator (CCO) in manual mode with GCP Workload Identity, you can use the CCO utility (ccoctl) to remove the GCP resources that ccoctl created during installation.

    Prerequisites

    Procedure

    1. Obtain the OKD release image by running the following command:

    2. Extract the list of custom resources (CRs) from the OKD release image by running the following command:

    3. Delete the GCP resources that ccoctl created: