# Delete linked account

`DELETE /v1/users/{user}/linkedAccounts/{linkedAccount}`, operation `users.DeleteLinkedAccount`

Removes a linked account, signs out other sessions created with that provider and notifies the user by email.

Requires a sign-in within the last 10 minutes (otherwise fails with RECENT_SIGN_IN_REQUIRED). Signing in with the account again re-links it (immediately for Google, or after email code verification for GitHub). Fails with failed_precondition for a Google account when only Google sign-in is enabled.

## Parameters

| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| `user` | path | Yes | `string` | The user's ID, or me for the caller. |
| `linkedAccount` | path | Yes | `string` | The account's provider and its ID there, such as github-583231. |

## Responses

### 204

No Content

### default

Error

Base URL: `https://api.kosem.ai`. See [API conventions](https://docs.kosem.ai/reference/api-conventions.md) for authentication, pagination and errors, and [https://docs.kosem.ai/openapi.yaml](https://docs.kosem.ai/openapi.yaml) for the full OpenAPI document.