---
title: "Unlink social provider"
method: DELETE
path: "/api/user/security/social/{provider}"
tags: ["User"]
---

# Unlink social provider

`DELETE /api/user/security/social/{provider}`

## Request

- Base URL: `https://demo.hitkeep.com`
- URL: `https://demo.hitkeep.com/api/user/security/social/{provider}`
- Auth: API key in cookie `hk_token`

Unlinks a provider only when another social provider, passkey, or recently confirmed enabled password remains usable. TOTP, recovery codes, email MFA, and team SSO do not satisfy this guard.

## Path parameters

- `provider` 'google' | 'github' | 'microsoft', required

## Request body

- object
  - `current_password` string

## Response `204`

Provider unlinked

## Other responses

- `404`: Identity not linked
- `409`: No alternative primary login method

---

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