deletePassword

suspend fun User.deletePassword(currentPassword: String): ClerkResult<User, ClerkErrorResponse>

Deletes the current user's password, or the user with the given session ID, using the Clerk API.

Return

A ClerkResult containing the User if the operation was successful, or a ClerkErrorResponse if it failed.

Parameters

currentPassword

The current password of the user. If null, the password is deleted without verification.