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"
}
]
}Deletes a Kubernetes cluster. This action is irreversible and will destroy all cluster resources.
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"
}
]
}Was this page helpful?