deleteUserExternalAccount()
Deletes an external account for the given user.
Returns the DeletedObject object.
function deleteUserExternalAccount(params: DeleteUserExternalAccountParams): Promise<DeletedObject>const userId = 'user_123'
const externalAccountId = 'external_account_123'
const response = await clerkClient.users.deleteUserExternalAccount({
userId,
externalAccountId,
})Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint DELETE/users/{user_id}/external_accounts/{external_account_id}. See the BAPI reference for more information.
Feedback
Last updated on