---
title: "Disconnect an OAuth grant"
method: DELETE
path: "/v1/credentials/oauth/{providerId}"
tags: ["Credentials"]
---

# Disconnect an OAuth grant

`DELETE /v1/credentials/oauth/{providerId}`

## Request

- Base URL: `http://localhost:9998`
- URL: `http://localhost:9998/v1/credentials/oauth/{providerId}`
- Auth: HTTP bearer

Revokes tokens (best-effort) and clears stored credentials for the provider.

## Response `200`

Disconnected

- OkResponse
  - `ok` true, required

---

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