lumen.org.offboard ​
Irreversibly delete all Lumen data for an organization (GDPR tenant-exit / org offboarding). Supports dry_run preview mode.
Irreversibly delete all Lumen data for one organization (GDPR tenant-exit).
Calls POST /api/org-data/<org_uuid>/purge on Lumen directly under the platform service key (lumen-direct). Supports dry_run=true to preview per-table row counts without deleting anything. Re-running after a successful purge is safe — all tables will report matched=0.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-lumen |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | Yes | — | UUID of the org being offboarded. Engine-injected from the caller's session; scopes the Lumen purge directly (it is the path segment of POST /api/org-data/<org_uuid>/purge). |
dry_run | boolean | No | — | When true, previews per-table row counts without deleting any data. Forwarded as ?dry_run=true to Lumen. Default: false. |
workflow_run_id | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | No | — | Echoed from the purge response; confirms which org was purged. |
dry_run | boolean | No | — | Echoed from the purge response; confirms execution mode. |
total_matched | integer | No | — | Total row count matched across all tables (pre-delete, best-effort). |
tables | json | No | — | Per-table purge detail. Each entry: {table: str, matched: int |
reason | string | No | — | Machine-readable failure cause. |
http_status | integer | No | — | HTTP status from Lumen (0 for network/timeout errors). |
error_code | string | No | — | Lumen error code field when present. |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
workflow_run_id | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "lumen.org.offboard",
"initial_data": {
"organization_uuid": "value"
}
}