---
title: "Oauth Youtube Disconnect"
method: POST
path: "/api/oauth/youtube/disconnect"
---

# Oauth Youtube Disconnect

`POST /api/oauth/youtube/disconnect`

## Request

- Base URL: `https://sleipnir.tv` (the document declares no server; this is the origin it was published from)
- URL: `https://sleipnir.tv/api/oauth/youtube/disconnect`
- Auth: none declared

Disconnect the user's YouTube channel: revoke every stored refresh
token at Google (best-effort; revoking the refresh token also kills all
derived access tokens), then DELETE the user's youtube_connections rows,
tokens and channel details included. Nothing is kept: YouTube API
Services policy III.A.2 requires deleting Authorized Data within 7 days
of an in-app revocation, and the privacy policy says disconnecting
deletes it (owner decision 2026-10-19, replacing the old mark-inactive).
A revoke that fails still deletes: the user asked to disconnect, and a
token we no longer hold cannot be used by us.

## Cookies

- `relay_session` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sleipnir/apis/relay-control-plane.md) · [All operations](https://skmtc.dev/sleipnir/apis/relay-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/sleipnir/apis/relay-control-plane/revisions/79829f6945a4?raw)
