Skip to main content
Delete the currently authenticated user’s account permanently.
Requires a valid authentication token in the AUTH header.

Headers

AUTH
string
required
Authentication token (JWT) obtained from the /auth/login endpoint

Example Request

curl -X DELETE "https://api.scorton.tech/users/me" \
  -H "AUTH: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."

Example Response

{
  "detail": "Ok: User successfully deleted."
}

Success Response

StatusDescription
200User deleted successfully

Error Responses

StatusDescriptionExample
401Missing or invalid token{ "detail": "Unauthorized: Invalid or expired token." }
403Account not validated{ "detail": "Forbidden: Account is not validated yet." }
404User not found{ "detail": "Not Found: User does not exist." }