spad.cloudflare.site-deletion-finalize ​
Finalize Cloudflare site deletion - soft-delete the site
Mark the site as soft-deleted and clear active_workflow_id.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-spad |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
site_uuid | string | Yes | — | ID of the SPAD site |
organization_uuid | string | No | — | Organization ID |
workflow_run_id | string | No | — | Injected by the parent DAG; propagated through state_data |
workflow_run_uuid | string | No | — | Parent workflow run ID stamped by the DAG engine (legacy alias) |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
site_uuid | string | Yes | — | Site that was soft-deleted |
completed_at | string | Yes | — | ISO8601 timestamp when the site was soft-deleted |
soft_deleted | boolean | Yes | — | True once site.cached_status was set to 'deleted' |
failure_reason | string | No | — | Reason recorded on the failure path |
workflow_run_id | string | No | — | Injected by the parent DAG; propagated through state_data |
organization_uuid | string | No | — | Organization ID |
workflow_run_uuid | string | No | — | Parent workflow run ID stamped by the DAG engine (legacy alias) |
error | string | No | — | Engine-stamped failure metadata |
error_type | string | No | — | Engine-stamped failure metadata |
failed_at_state | json | No | — | Engine-stamped failure metadata |
failed_layer | json | No | — | Engine-stamped failure metadata |
failed_step | json | No | — | Engine-stamped failure metadata |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | run | Deletion finalize accepted |
run | No | No | — | complete | Applying final deletion status updates |
completed | No | Yes | Yes | — | Site deletion finalized |
failed | No | Yes | No | — | Deletion finalize failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | run | run | Start deletion finalize |
run | complete | completed | Mark deletion finalize completed |
* (any state) | fail | failed | Mark deletion finalize failed |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "spad.cloudflare.site-deletion-finalize",
"initial_data": {
"site_uuid": "value"
}
}