deleteUserProfileImage()
Deletes a user's profile image.
Returns the updated User.
function deleteUserProfileImage(userId: string): Promise<User>- Name
userId- Type
string- Description
The ID of the user to delete the profile image for.
const userId = 'user_123'
const response = await clerkClient.users.deleteUserProfileImage(userId)Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint DELETE/users/{user_id}/profile_image. See the BAPI reference for more information.
Feedback
Last updated on