Skip to content
Proud to collaborate with Microsoft for Startups

deploy.platform.teardown ​

Reverse of deploy.platform.release: best-effort teardown of domains, static sites, services (+images), and databases.

Tear down a full platform release (reverse order, best-effort, idempotent).

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-deployments
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes—Organization UUID.
deployment_plan_idstringNo—External plan or change id.
environmentstringNo—Environment being torn down.
gcp_connection_uuiduuidYes—GCP connection UUID.
registry_configjsonNo—Artifact Registry / project-region defaults (project_id, region, repository_id).
serviceslistNo—Services to tear down (service_name, deployment_target_uuid, image_name, repository_id, domain, delete_image).
databaseslistNo—Databases to deprovision (instance_id, secret_id, connection_uuid, region).
static_siteslistNo—Static sites to tear down (bucket, prefix, dns_zone_id, dns_record_id).
domainslistNo—Domains to unbind (domain, region, dns_zone_id, dns_record_id).
delete_imagesbooleanNo—When true, also delete each service image from Artifact Registry. Default false.

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidNo—Echoed organization UUID.
deployment_plan_idstringNo—External plan id.
environmentstringNo—Environment.
domain_resultslistNo—Per-domain unbind outcomes.
static_resultslistNo—Per-static-site teardown outcomes.
service_resultslistNo—Per-service Cloud Run teardown outcomes.
image_resultslistNo—Per-image delete outcomes (when delete_images).
database_resultslistNo—Per-database deprovision outcomes.
failed_countintegerNo—Number of items that failed to tear down.
statusstringNo—completed
failure_reasonstringNo—Engine failure reason.
failed_stepjsonNo—Failed step envelope.
failed_layerjsonNo—Failed layer envelope.
failed_at_statestringNo—State where failure occurred.
errorstringNo—Error message.
error_typestringNo—Error class.

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
executingNoNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecuteexecuting—
executingcompletecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "deploy.platform.teardown",
  "initial_data": {
    "organization_uuid": "value",
    "gcp_connection_uuid": "value"
  }
}