Skip to main content

DELETE /utils/me

Delete own user.

Deletes the currently authenticated user's account from the system.

Endpoint

DELETE /utils/me

Parameters

NameTypeDescription
sessionSessionDepThe database session dependency used to perform the deletion operation.
current_userCurrentUserThe currently authenticated user object retrieved from the security context.

Response

StatusDescription
200The user account was successfully deleted. Returns Message.
403Returned when a superuser attempts to delete their own account, which is prohibited. Returns HTTPException.