Deleting an OKE Cluster

On Compute Cloud@Customer, deleting an OKE cluster deletes the cluster control plane nodes, worker nodes, and node pools. Other cluster resources such as VCNs, internet gateways, NAT gateways, route tables, security lists, load balancers, and block volumes aren't deleted when you delete the cluster. Those resources must be deleted separately.

    1. In the Compute Cloud@Customer Console navigation menu, click Containers, then click Kubernetes Clusters.
    2. For the cluster that you want to delete, click the Actions menu (An image of the three dot icon.), and click Delete.

    3. Confirm that you want to delete the cluster.

      Enter the cluster name, and click Delete.

  • Use the oci ce cluster delete command and required parameters to delete a cluster.

    oci ce cluster delete --cluster-id <cluster_OCID> [OPTIONS]
    1. Get the OCID of the cluster that you want to delete: oci ce cluster list

    2. Run the delete cluster command.

      Example:

      $ oci ce cluster delete --cluster-id ocid1.cluster.unique_ID --force

      The --force option performs the deletion without prompting for confirmation.

    For a complete list of CLI commands, flags, and options, see the Command Line Reference.

  • Use the DeleteCluster operation to delete a cluster.

    For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.