Remove Workspace From Service Account changedapi/admin/service_accounts/workspaces/delete
Nearest release: v2.1.261, published 3 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+4added
Lines−3removed
From line
2
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits4to this page, all time
The whole hunk
from line 2, old and new numbered
/
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)
No line in this hunk matches that.