---
title: "Oauth Unlink"
method: DELETE
path: "/v1/auth/oauth/{provider}"
tags: ["auth-oauth"]
---

# Oauth Unlink

`DELETE /v1/auth/oauth/{provider}`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/auth/oauth/{provider}`
- Auth: none declared

Unlink an OAuth provider from the authenticated user. Refuses if it
would leave the user with NO way to log back in (no password AND no
other OAuth identity).

## Path parameters

- `provider` string, required

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sonenta/apis/sonenta-api.md) · [All operations](https://skmtc.dev/sonenta/apis/sonenta-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sonenta/apis/sonenta-api/revisions/f853ea49fb05?raw)
