Claude Platform Docs

Delete Workspace Member

$ ant organization:workspaces:members remove
DELETE/v1/organizations/workspaces/{workspace_id}/members/{user_id}

Delete Workspace Member

Parameters
--workspace-id: string⁠Path parameter

ID of the Workspace.

--user-id: string⁠Path parameter

ID of the User.

Returns
OrganizationWorkspaceMemberRemoveResponse: object{ type: "workspace_member_deleted", user_id, workspace_id }
type: "workspace_member_deleted"

Deleted object type.

For Workspace Members, this is always "workspace_member_deleted".

user_id: string

ID of the User.

workspace_id: string

ID of the Workspace.

Errors

Any method can also return the general HTTP errors.

Each code below is the value of error.details.error_code in the response body.

error code sandbox_egress_restrictedHTTP status 403

The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.

Delete Workspace Member
ant organization:workspaces:members remove \
  --workspace-id workspace_id \
  --user-id user_id
Returns Examples
Response 200
{
  "type": "workspace_member_deleted",
  "user_id": "user_01WxYzAbCdEfGhJkMnPqRsTu",
  "workspace_id": "wrkspc_01JwQvzr7rXLA5AGx3HKfFUJ"
}