DELETE /utils/me
Delete own user.
Deletes the currently authenticated user's account from the system.
Endpoint
DELETE /utils/me
Parameters
| Name | Type | Description |
|---|---|---|
| session | SessionDep | The database session dependency used to perform the deletion operation. |
| current_user | CurrentUser | The currently authenticated user object retrieved from the security context. |
Response
| Status | Description |
|---|---|
| 200 | The user account was successfully deleted. Returns Message. |
| 403 | Returned when a superuser attempts to delete their own account, which is prohibited. Returns HTTPException. |