data.identity.end-user.purge ​
Hard-delete one soft-deleted end-user and app-scoped cleanup rows
Hard-delete one already soft-deleted EndUser and app-scoped residues.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-identity |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
identity_app_uuid | uuid | Yes | — | — |
end_user_uuid | uuid | Yes | — | — |
dry_run | boolean | No | — | — |
actor | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
end_user_uuid | uuid | Yes | — | — |
identity_app_uuid | uuid | Yes | — | — |
purged | boolean | Yes | — | — |
not_found | boolean | Yes | — | — |
dry_run | boolean | Yes | — | — |
auth_codes_purged | integer | Yes | — | — |
verification_tokens_purged | integer | Yes | — | — |
app_grants_purged | integer | Yes | — | — |
purged_at | string | Yes | — | — |
actor | string | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
reason | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | complete | Purge soft-deleted end-user |
completed | No | Yes | Yes | — | Purge complete |
failed | No | Yes | No | — | Purge failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | complete | completed | — |
pending | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "data.identity.end-user.purge",
"initial_data": {
"organization_uuid": "value",
"identity_app_uuid": "value",
"end_user_uuid": "value"
}
}