Skip to main content
DELETE
/
kubernetes_clusters
/
{kubernetes_cluster_id}
Python (SDK)
from latitudesh_python_sdk import Latitudesh
import os


with Latitudesh(
    bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:

    latitudesh.kubernetes_clusters.delete_kubernetes_cluster(kubernetes_cluster_id="<id>")

    # Use the SDK ...
{
  "errors": [
    {
      "code": "UNAUTHORIZED",
      "message": "Invalid token"
    }
  ]
}

Authorizations

Authorization
string
header
required

Path Parameters

kubernetes_cluster_id
string
required

The cluster ID (format: kc_) or cluster name. Both formats are accepted for backward compatibility.

Response

No Content