Skip to content
Proud to collaborate with Microsoft for Startups

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 ​

PropertyValue
Workflow typeAtomic
LibraryApp-lumen
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes—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_runbooleanNo—When true, previews per-table row counts without deleting any data. Forwarded as ?dry_run=true to Lumen. Default: false.
workflow_run_idstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringNo—Echoed from the purge response; confirms which org was purged.
dry_runbooleanNo—Echoed from the purge response; confirms execution mode.
total_matchedintegerNo—Total row count matched across all tables (pre-delete, best-effort).
tablesjsonNo—Per-table purge detail. Each entry: {table: str, matched: int
reasonstringNo—Machine-readable failure cause.
http_statusintegerNo—HTTP status from Lumen (0 for network/timeout errors).
error_codestringNo—Lumen error code field when present.
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——
workflow_run_idstringNo——

States ​

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

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

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

{
  "workflow_type": "lumen.org.offboard",
  "initial_data": {
    "organization_uuid": "value"
  }
}