Skip to content
Proud to collaborate with Microsoft for Startups

gcp.storage.objects.delete-prefix ​

Delete all GCS objects below a prefix for static publish cleanup.

Overview ​

PropertyValue
Workflow typeLinear
LibraryBase-gcp
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes—GCP CloudConnection UUID.
project_idstringNo—GCP project override.
bucketstringYes—Destination bucket.
prefixstringYes—Prefix to delete.
dry_runbooleanNo—Count matches without deleting.
max_delete_countintegerNo—Safety cap for object deletes.

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo—Echoed connection UUID.
project_idstringNo—Effective project id.
bucketstringNo—Destination bucket.
prefixstringNo—Deleted prefix.
dry_runbooleanNo—Echoed dry-run flag.
max_delete_countintegerNo—Safety cap (carried through from input).
matched_countintegerNo—Objects matched.
deleted_countintegerNo—Objects deleted.
failure_reasonstringNo—Human-readable failure reason.
failed_stepstringNo—Failed logical step.
failed_layerjsonNo—Engine failed layer envelope.
failed_at_statestringNo—State where failure occurred.
errorstringNo—Error message.
error_typestringNo—Error class.

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—preflight—
deletingNoNo—complete—
preflightingNoNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingpreflightpreflighting—
preflightingexecutedeleting—
deletingcompletecompleted—
* (any state)failfailed—

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"
  }
}