---
title: "Unlink a Google/GitHub account from the current user"
method: DELETE
path: "/api/auth/links/{provider}"
tags: ["Auth"]
---

# Unlink a Google/GitHub account from the current user

`DELETE /api/auth/links/{provider}`

## Request

- Base URL: `https://hiveship.app/api`
- URL: `https://hiveship.app/api/api/auth/links/{provider}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `hiveship_access`
  - HTTP bearer

## Path parameters

- `provider` string, required

## Response `200`

Provider unlinked

## Other responses

- `400`: This is the last sign-in method — refused
- `404`: No linked account for this provider

---

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