Delete a workspace in the organization
/v1/organization/workspaces/{workspace_id}await bird.organization.workspaces.delete("ws_01krdgeqcxet5s7t44vh8rt9mg");client.organization.workspaces.delete("ws_01krdgeqcxet5s7t44vh8rt9mg")err = client.Organization.Workspaces.Delete(context.Background(), "ws_01krdgeqcxet5s7t44vh8rt9mg")
if err != nil {
log.Fatal(err)
}$bird->organization->workspaces->delete('ws_01krdgeqcxet5s7t44vh8rt9mg');bird organization workspaces delete <workspace-id> --yescurl -X DELETE "https://us1.platform.bird.com/v1/organization/workspaces/{workspace_id}" \
-H "Authorization: Bearer $TOKEN"Deletes the workspace. Access ends immediately: the workspace is hidden and its API keys are revoked. Its data and configuration are retained for 7 days and can be restored by contacting support within that window, after which everything is permanently purged. Returns a conflict if this is the organization's only workspace or a retained receiving claim depends on it. Receiving dependencies are checked before the workspace is hidden or its keys are revoked. Disable receiving for the affected domain in this workspace, poll it until capabilities.inbound.status is not_configured, then retry deletion. Failed or pending receiving claims still block deletion. Organization master keys and authorized CLI or MCP access tokens need organization workspace write access. Workspace API keys cannot call this operation.
पैरामीटर
workspace_idstringWorkspace identifier. Starts with ws_.
संबंधित संसाधन
इस विषय के लिए दस्तावेज़, गाइड और उदाहरणों के साथ आगे बढ़ें।