Skip to content
Proud to collaborate with Microsoft for Startups

kubernetes.namespace.delete ​

Delete a Kubernetes Namespace

Deletes a Namespace (and everything in it — kube garbage-collects the contents asynchronously). Swallows 404. Returns immediately after the delete call is accepted; this primitive does not wait for the namespace to fully terminate.

Inputs:

  • connection_uuid: Cloud connection UUID (required)
  • name: Namespace name (required)

Outputs:

  • name, existed: bool

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-kubernetes
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes——
namestringYes——
organization_uuiduuidNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo——
organization_uuiduuidNo——
namestringNo——
existedbooleanNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "kubernetes.namespace.delete",
  "initial_data": {
    "connection_uuid": "value",
    "name": "value"
  }
}