deleteUserExternalAccount()
Deletes a user's external account by ID. Returns a .
function deleteUserExternalAccount(params: DeleteUserExternalAccountParams): Promise<DeletedObject>
- Name
userId
- Type
string
- Description
The ID of the user to delete the external account for.
- Name
externalAccountId
- Type
string
- Description
The ID of the external account to delete.
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