---
title: "Disconnect an OAuth app: delete stored tokens (best-effort remote revocation when a revocation endpoint is known)"
method: DELETE
path: "/api/oauth-apps/{provider}/tokens"
tags: ["Script Connections"]
---

# Disconnect an OAuth app: delete stored tokens (best-effort remote revocation when a revocation endpoint is known)

`DELETE /api/oauth-apps/{provider}/tokens`

## Path parameters

- `provider` string, required

## Response `200`

Disconnect result

- union
  - object
    - `disconnected` false, required
    - `message` string, required
  - object
    - `disconnected` true, required
    - `revocationAttempted` boolean, required

## Other responses

- `403` — Only the lead agent can manage script connections
- `404` — OAuth app not found

---

[API](https://skmtc.net/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.net/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/desplega-ai/agent-swarm-api/versions/db1079e034dc/schema)
