cloudflare.pages.delete
Tear down a Cloudflare Pages project — unbind its custom domains and delete the project. Idempotent.
Overview
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-cloudflare |
| Version | 1.0 |
Input Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Organization UUID. |
connection_uuid | uuid | Yes | — | Cloudflare CloudConnection UUID. |
project_name | string | Yes | — | Pages project name. |
unbind_domains | boolean | No | — | Unbind custom domains before delete; default true. |
Output Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | Organization UUID. |
connection_uuid | uuid | Yes | — | Cloudflare CloudConnection UUID. |
project_name | string | Yes | — | Pages project name. |
unbind_domains | boolean | No | — | Unbind custom domains before delete; default true. |
domains_removed | integer | No | — | Custom domains unbound. |
deleted | boolean | No | — | True if the project was deleted; false if already absent. |
status | string | No | — | Result status. |
failure_reason | string | No | — | Engine-stamped human-readable failure reason |
failed_at_state | string | No | — | Engine-stamped state when the workflow failed |
failed_step | string | No | — | Engine-stamped step name (DAG path) |
failed_layer | integer | No | — | Engine-stamped layer index (DAG path) |
error | string | No | — | Engine-stamped exception message |
error_type | string | No | — | Engine-stamped exception class name |
failure_type | string | No | — | Engine-stamped failure category (atomic path) |
failed_action | string | No | — | Engine-stamped action method that raised (atomic path) |
States
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | unbind | Inputs accepted |
deleted | No | No | — | persist | Project deleted on the provider |
unbound | No | No | — | execute | Custom domains unbound |
completed | No | Yes | Yes | — | Teardown complete |
failed | No | Yes | No | — | Delete failed |
State Diagram
Transitions
| From | Action | To | Description |
|---|---|---|---|
pending | unbind | unbound | — |
unbound | execute | deleted | — |
deleted | persist | completed | — |
* (any state) | fail | failed | — |
API Usage
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "cloudflare.pages.delete",
"initial_data": {
"organization_uuid": "value",
"connection_uuid": "value",
"project_name": "value"
}
}