Skip to content
Proud to collaborate with Microsoft for Startups

spad.cloudflare.site-deletion-delete-domains ​

Delete custom domains (DNS records) for a Cloudflare SPAD site

Remove DNS records for every active custom domain attached to the site.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-spad
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
site_uuidstringYes—ID of the SPAD site
organization_uuidstringNo—Organization ID
cloud_connection_uuidstringNo—Cloudflare connection ID
delete_resourcesbooleanNoTrueWhen false, skip DNS deletion
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
domains_deleted_countintegerYes—Number of custom domains DNS records were removed for
failure_reasonstringNo—Reason recorded on the failure path
workflow_run_idstringNo—Injected by the parent DAG; propagated through state_data
site_uuidstringNo—ID of the SPAD site
organization_uuidstringNo—Organization ID
cloud_connection_uuidstringNo—Cloudflare connection ID
delete_resourcesbooleanNo—When false, skip DNS deletion
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—runDomain deletion accepted
runNoNo—completeRemoving DNS records
completedNoYesYes—Domain deletion completed
failedNoYesNo—Domain deletion failed

State Diagram ​

Transitions ​

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

API Usage ​

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

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