Remove a user avatar
Remove an avatar from storage and clear the image reference on the user record. Defaults to the authenticated user; organization owners and admins may pass `userId` for a non-owner member of the active organization.
Remove an avatar from storage and clear the image reference on the user record. Defaults to the authenticated user; organization owners and admins may pass userId for a non-owner member of the active organization.
__Secure-guidelab-prod.session_token<token>
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Query Parameters
userId?string
Response Body
application/json
curl -X DELETE "https://example.com/user/avatar"{ "success": true}Empty
Empty
Empty
Empty
Empty