The whole hunk
from line 2, old and new numbered
/
lines
from line 2
22
33**DELETE** `/v1/organizations/service_accounts/{service_account_id}/workspaces/{workspace_id}`
44
5**Requires an OAuth access token with the `org:admin` scope**, from `ant auth login --scope org:admin` or a workload identity federation rule; Admin API keys are not accepted. See [Manage WIF with the Admin API](/docs/en/manage-claude/wif-admin-api).
6
57Remove a service account from a workspace.
68
79Mirror of `DELETE /workspaces/{workspace_id}/service_accounts/{service_account_id}`,
from line 12
1012implicit default-workspace membership returns 200 but is a no-op and the
1113membership persists; deleting an explicit default-workspace row reverts
1214to the implicit `workspace_user` membership. Archived workspaces return
13400. Requires an OAuth bearer or Console session; Admin API keys are not
14accepted.
15400.
1516
1617## Path parameters
1718
from line 52
5152curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID/workspaces/$WORKSPACE_ID \
5253 -X DELETE \
5354 -H 'anthropic-version: 2023-06-01' \
54 -H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN"
55 -H "Authorization: Bearer $ANTHROPIC_AUTH_TOKEN"
5556```
5657
5758### Response (200)