---
title: "Unlink"
method: DELETE
path: "/auth/me/identities/{provider}/{ref}"
---

# Unlink

`DELETE /auth/me/identities/{provider}/{ref}`

## Request

- Base URL: `https://api-docs.session-exchange.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.session-exchange.com/auth/me/identities/{provider}/{ref}`
- Auth: none declared

Remove one sign-in method from the caller's account. Needs a sign-in within the last 10 minutes, on
the callback host; the last remaining method can't be removed (409 `last_identity`). Every OTHER
session of the account is signed out (the one making the change stays), so a browser that got in with
the removed method does not keep access. Agent keys are NOT revoked (#1025 item 2): `active_keys` lists
the ones that still work (id, label, dates — never a token), each revocable on its own.

## Path parameters

- `provider` string, required
- `ref` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/session-exchange/apis/a4sx.md) · [All operations](https://skmtc.dev/session-exchange/apis/a4sx/llms.txt) · [OpenAPI document](https://skmtc.dev/session-exchange/apis/a4sx/revisions/abaefc33dfc7?raw)
