E004: Delete user
DELETE /api/user
Deletes the authenticated user's account: removes the platform user record and its memberships, and deletes the Firebase credential. Any organization the caller solely owns is cascade-deleted along with all of its data; co-owned organizations keep their other owners.
Authentication
User-scoped route. Requires Authorization: Bearer <firebase-id-token>; X-Org-Id is not required. Access: Authenticated.
Request
No body.
Response — 200 OK
{ "deletedId": "uuid" }
Errors
| HTTP | code | Condition |
|---|---|---|
| 401 | unauthorized | Missing, malformed, or rejected Firebase ID token. |
| 404 | not_found | No platform user row for the verified identity. |
Workflow
Calls W004 Delete user.