DELETE
/users/{user_id}/external_accounts/{external_account_id}Delete a user's external account
Deletes an external account associated with a user. Supply the user_id and external_account_id for the account you want to remove.
user_idstringrequired
The unique identifier of the user associated with the external account.
external_account_idstringrequired
The unique identifier of the external account to delete.
200Returns a deleted-object record containing the deletion status and, when available, the object's ID, slug, and external ID.
objectstringrequired
idstringoptional
slugstringoptional
deletedbooleanrequired
external_idstringoptional
400Returned when the request is not successful.
errorsarray<object>required
metaobjectoptional
clerk_trace_idstringoptional
403Returned when authorization is invalid.
errorsarray<object>required
metaobjectoptional
clerk_trace_idstringoptional
404Returned when the user or external account cannot be found.
errorsarray<object>required
metaobjectoptional
clerk_trace_idstringoptional
500Returned when the request is not successful.
errorsarray<object>required
metaobjectoptional
clerk_trace_idstringoptional
Error handling
A 400 is returned when the request is invalid, a 403 when authorization is invalid, a 404 when a resource cannot be found, and a 500 when the request is unsuccessful. The user_id path parameter and external_account_id path parameter must identify the user and external account involved in the deletion.