Skip to content
Proud to collaborate with Microsoft for Startups

spad.site-deletion-init ​

Initialize site deletion - load site data and mark as deleting

Init step for site deletion DAG.

Loads site data from DB, sets status to "deleting", and returns all resource IDs needed by downstream steps.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-spad
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
site_uuidstringYes—UUID of the SPAD site to delete
organization_uuidstringNo—Organization UUID
delete_resourcesbooleanNoTrueWhether to delete cloud resources
workflow_run_idstringNo——
workflow_run_uuidstringNo—Parent workflow run ID stamped by the DAG engine (legacy alias)

Output Schema ​

FieldTypeRequiredDefaultDescription
site_uuidstringYes—UUID of the site marked as deleting
organization_uuidstringYes—UUID of the organization that owns the site
cloud_connection_uuidstringYes—CloudConnection UUID used to reach the site's resources
cloudfront_distribution_refstringNo—CloudFront distribution id to disable/delete (None when unset)
cloudfront_oac_refstringNo—CloudFront OAC id to delete (None when unset)
s3_bucket_namestringNo—S3 bucket name to empty/delete (None when unset)
delete_resourcesbooleanYes—Whether downstream steps should delete cloud resources
cloud_providerstringYes—Provider identifier derived from the site's CloudConnection (e.g. 'aws', 'gcp')
initiated_atstringYes—ISO8601 timestamp when deletion was initiated
gcp_cdn_forwarding_rule_namestringNo—GCP HTTP forwarding-rule name (gcp_cdn resource, None for non-GCP)
gcp_cdn_target_proxy_namestringNo—GCP HTTP target-proxy name (gcp_cdn resource, None for non-GCP)
gcp_cdn_url_map_namestringNo—GCP URL-map name (gcp_cdn resource, None for non-GCP)
gcp_cdn_backend_bucket_namestringNo—GCP backend-bucket name (gcp_cdn resource, None for non-GCP)
gcp_https_proxy_namestringNo—GCP HTTPS target-proxy name (gcp_https_proxy resource, None when absent)
gcp_https_forwarding_rule_namestringNo—GCP HTTPS forwarding-rule name (gcp_https_forwarding_rule resource, None when absent)
gcp_managed_cert_namestringNo—GCP managed-cert name (gcp_managed_cert resource, None when absent)
failure_reasonstringNo—Reason recorded on the failure path
workflow_run_idstringNo——
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.site-deletion-init",
  "initial_data": {
    "site_uuid": "value"
  }
}