kubernetes.manifest.delete ​
Delete any Kubernetes resource by (apiVersion, kind, name, namespace)
Delete an arbitrary Kubernetes resource by address.
Inputs:
- connection_uuid: Cloud connection UUID (required)
- api_version: e.g. "apps/v1", "v1", "networking.k8s.io/v1" (required)
- kind: e.g. "Deployment", "Service", "Ingress" (required)
- name: Resource name (required)
- namespace: Required for namespaced kinds; omit for cluster-scoped
Outputs:
- api_version, kind, namespace, name, existed (bool — False means 404)
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-kubernetes |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | Yes | — | — |
api_version | string | Yes | — | — |
kind | string | Yes | — | — |
name | string | Yes | — | — |
namespace | string | No | — | Required for namespaced kinds; omit for cluster-scoped |
organization_uuid | uuid | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | — |
organization_uuid | uuid | No | — | — |
api_version | string | No | — | — |
kind | string | No | — | — |
namespace | string | No | — | — |
name | string | No | — | — |
existed | boolean | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "kubernetes.manifest.delete",
"initial_data": {
"connection_uuid": "value",
"api_version": "value",
"kind": "value",
"name": "value"
}
}