gcp.artifactregistry.image.delete ​
Delete an Artifact Registry package (image) and all versions; idempotent when already absent.
Delete an Artifact Registry package (image) and all its versions. Idempotent.
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. |
location | string | Yes | — | Artifact Registry location/region. |
repository_id | string | Yes | — | Artifact Registry repository id. |
package | string | Yes | — | Package (image) name within the repository. |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | Echoed connection UUID. |
project_id | string | No | — | Effective project. |
location | string | No | — | Artifact Registry location. |
repository_id | string | No | — | Repository id. |
package | string | No | — | Package (image) name. |
deleted | boolean | No | — | True when this run deleted the package. |
already_absent | boolean | No | — | True when the package did not exist. |
operation_name | string | No | — | Artifact Registry delete operation id. |
failure_reason | string | No | — | Human-readable failure reason. |
failed_step | string | No | — | Failed logical step. |
failed_layer | json | No | — | Engine failed layer. |
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 | — | execute | — |
deleting | No | No | — | complete | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | deleting | — |
deleting | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "gcp.artifactregistry.image.delete",
"initial_data": {
"connection_uuid": "value",
"location": "value",
"repository_id": "value",
"package": "value"
}
}