Skip to content
Proud to collaborate with Microsoft for Startups

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 ​

PropertyValue
Workflow typeLinear
LibraryApp-spad
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
site_uuidstringYes—ID of the SPAD site
organization_uuidstringNo—Organization ID
workflow_run_idstringNo—Injected by the parent DAG; propagated through state_data
workflow_run_uuidstringNo—Parent workflow run ID stamped by the DAG engine (legacy alias)

Output Schema ​

FieldTypeRequiredDefaultDescription
site_uuidstringYes—Site that was soft-deleted
completed_atstringYes—ISO8601 timestamp when the site was soft-deleted
soft_deletedbooleanYes—True once site.cached_status was set to 'deleted'
failure_reasonstringNo—Reason recorded on the failure path
workflow_run_idstringNo—Injected by the parent DAG; propagated through state_data
organization_uuidstringNo—Organization ID
workflow_run_uuidstringNo—Parent workflow run ID stamped by the DAG engine (legacy alias)
errorstringNo—Engine-stamped failure metadata
error_typestringNo—Engine-stamped failure metadata
failed_at_statejsonNo—Engine-stamped failure metadata
failed_layerjsonNo—Engine-stamped failure metadata
failed_stepjsonNo—Engine-stamped failure metadata

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—runDeletion finalize accepted
runNoNo—completeApplying final deletion status updates
completedNoYesYes—Site deletion finalized
failedNoYesNo—Deletion finalize failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingrunrunStart deletion finalize
runcompletecompletedMark deletion finalize completed
* (any state)failfailedMark 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"
  }
}