spad.site-deletion-delete-domains ​
Delete custom domains (CF aliases, ACM certs, DNS records)
Delete all custom domains for a SPAD site
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-spad |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
site_uuid | string | Yes | — | UUID of the SPAD site |
organization_uuid | string | Yes | — | Organization UUID |
cloud_connection_uuid | string | Yes | — | Cloud connection UUID |
cloudfront_distribution_ref | string | No | — | CloudFront distribution id (provider-native) |
delete_resources | boolean | No | True | Whether to delete cloud resources |
workflow_run_id | string | No | — | — |
workflow_run_uuid | string | No | — | Parent workflow run ID stamped by the DAG engine (legacy alias) |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
domains_deleted | string | Yes | — | 'skipped' when delete_resources=False; otherwise True once domains are removed |
domains_deleted_count | integer | Yes | — | Number of custom domains successfully deleted |
domains_deleted_names | list | No | — | Names of the domains that were deleted (success path only) |
failure_reason | string | No | — | Reason recorded on the failure path |
workflow_run_id | string | No | — | — |
site_uuid | string | No | — | UUID of the SPAD site |
organization_uuid | string | No | — | Organization UUID |
cloud_connection_uuid | string | No | — | Cloud connection UUID |
cloudfront_distribution_ref | string | No | — | CloudFront distribution id (provider-native) |
delete_resources | boolean | No | — | Whether to delete cloud resources |
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 | Domain deletion step accepted |
run | No | No | — | complete | Deleting domain/certificate/DNS resources |
completed | No | Yes | Yes | — | Domain deletion completed |
failed | No | Yes | No | — | Domain deletion failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | run | run | Start domain deletion |
run | complete | completed | Mark domain deletion completed |
* (any state) | fail | failed | Mark domain deletion failed |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "spad.site-deletion-delete-domains",
"initial_data": {
"site_uuid": "value",
"organization_uuid": "value",
"cloud_connection_uuid": "value"
}
}