# DELETE /websites/github/accounts/:installation_id

**Resource:** [Websites](./websites.md)  
**MCP tool:** `disconnect_github_account`  
**Scopes:** `websites:write`  
**Write operation:** yes

Workspace admins: disconnect one of this workspace's own GitHub accounts from this workspace. This workspace's websites built through it stop syncing; the live sites stay exactly as they are. When other workspaces still use the account (other_workspaces in get_github_connection), they keep it and nothing changes on GitHub; when this is the last workspace, the TrustPager Sites app is removed from the account on GitHub. An agency's account can only be disconnected by that agency.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `installation_id` | path | string | yes | installation_id of the account, from get_github_connection. |
| `require_approval` | query | boolean | no | Optional. Set true to route this write into the approval queue for human review instead of executing it immediately (returns 202 + an approval_id). Works even when your key/token has permission to execute directly. |

## Request example

```bash
curl -X DELETE   "https://api.trustpager.com/functions/v1/api/v1/websites/github/accounts/:installation_id"   -H "Authorization: Bearer YOUR_API_KEY"
```

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`