Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.308 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
One change · api

Remove Workspace From Service Account changedapi/admin/service_accounts/workspaces/delete

Nearest release: v2.1.245, published an hour after 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+9added
Lines−14removed
From line 1 where the diff opens
First seen 14 Aug 2026 this site's first read of the page
Recorded edits4to this page, all time

# Remove Workspace From Service Account ## Path parameters ## Headers ## Returns ## Example ### Response (200) ## Remove Workspace From Service Account ### Path Parameters ### Header Parameters ### Returns ### Example #### Response

The whole hunk

from line 1, old and new numbered
/
lines
from line 1
1---
2title: Remove Workspace From Service Account
3url: https://platform.claude.com/docs/en/api/admin/service_accounts/workspaces/delete
4---
1# Remove Workspace From Service Account
52 
6## Remove Workspace From Service Account
3**DELETE** `/v1/organizations/service_accounts/{service_account_id}/workspaces/{workspace_id}`
74 
8**delete** `/v1/organizations/service_accounts/{service_account_id}/workspaces/{workspace_id}`
9 
105Remove a service account from a workspace.
116 
127Mirror of `DELETE /workspaces/{workspace_id}/service_accounts/{service_account_id}`,
from line 13
1813400. Requires an OAuth bearer or Console session; Admin API keys are not
1914accepted.
2015 
21### Path Parameters
16## Path parameters
2217 
2318- `service_account_id: string`
2419 
from line 23
2823 
2924 ID of the workspace.
3025 
31### Header Parameters
26## Headers
3227 
3328- `"anthropic-beta": optional array of string`
3429 
from line 31
3631 
3732 To use multiple betas, use a comma separated list like `beta1,beta2` or specify the header multiple times for each beta.
3833 
39### Returns
34## Returns
4035 
4136- `service_account_id: string`
4237 
from line 39
4439 
4540- `type: "service_account_workspace_member_deleted"`
4641 
47 - `"service_account_workspace_member_deleted"`
42 default: service_account_workspace_member_deleted
4843 
4944- `workspace_id: string`
5045 
5146 Tagged workspace ID (`wrkspc_...`) named in the delete request.
5247 
53### Example
48## Example
5449 
55```http
50```bash
5651curl https://api.anthropic.com/v1/organizations/service_accounts/$SERVICE_ACCOUNT_ID/workspaces/$WORKSPACE_ID \
5752 -X DELETE \
5853 -H 'anthropic-version: 2023-06-01' \
from line 54
5954 -H "Authorization: Bearer $ANTHROPIC_OAUTH_TOKEN"
6055```
6156 
62#### Response
57### Response (200)
6358 
6459```json
6560{
Feedback