gcp.storage.objects.delete-prefix ​
Delete all GCS objects below a prefix for static publish cleanup.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | Base-gcp |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | Yes | — | GCP CloudConnection UUID. |
project_id | string | No | — | GCP project override. |
bucket | string | Yes | — | Destination bucket. |
prefix | string | Yes | — | Prefix to delete. |
dry_run | boolean | No | — | Count matches without deleting. |
max_delete_count | integer | No | — | Safety cap for object deletes. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | Echoed connection UUID. |
project_id | string | No | — | Effective project id. |
bucket | string | No | — | Destination bucket. |
prefix | string | No | — | Deleted prefix. |
dry_run | boolean | No | — | Echoed dry-run flag. |
max_delete_count | integer | No | — | Safety cap (carried through from input). |
matched_count | integer | No | — | Objects matched. |
deleted_count | integer | No | — | Objects deleted. |
failure_reason | string | No | — | Human-readable failure reason. |
failed_step | string | No | — | Failed logical step. |
failed_layer | json | No | — | Engine failed layer envelope. |
failed_at_state | string | No | — | State where failure occurred. |
error | string | No | — | Error message. |
error_type | string | No | — | Error class. |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | preflight | — |
deleting | No | No | — | complete | — |
preflighting | No | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | preflight | preflighting | — |
preflighting | execute | deleting | — |
deleting | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "gcp.storage.objects.delete-prefix",
"initial_data": {
"connection_uuid": "value",
"bucket": "value",
"prefix": "value"
}
}