Skip to content
Proud to collaborate with Microsoft for Startups

spad.cloudflare.site-deletion-init ​

Initialize Cloudflare site deletion - load site data and mark as deleting

Init step for Cloudflare site deletion DAG — snapshots resources and marks site deleting.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-spad
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
site_uuidstringYes—SpadSite.id to delete
organization_uuidstringNo—Organization that owns the site
delete_resourcesbooleanNoTrueWhen false, skip provider resource deletion (DB-only soft delete)
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 marked as deleting
organization_uuidstringYes—Organization that owns the site
cloud_connection_uuidstringYes—Cloudflare CloudConnection.id
worker_script_namestringNo—Worker script name snapshotted before deletion
r2_bucket_namestringNo—R2 bucket name snapshotted before deletion
delete_resourcesbooleanYes—Whether downstream steps should delete cloud resources
initiated_atstringYes—ISO8601 timestamp when deletion was initiated
failure_reasonstringNo—Reason recorded on the failure path
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)
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 init accepted
runNoNo—completeLoading site and preparing deletion context
completedNoYesYes—Deletion init completed
failedNoYesNo—Deletion init failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingrunrunStart deletion init
runcompletecompletedMark init completed
* (any state)failfailedMark init failed

API Usage ​

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

{
  "workflow_type": "spad.cloudflare.site-deletion-init",
  "initial_data": {
    "site_uuid": "value"
  }
}