Last Workspace Cannot Be Deleted
workspace-last-undeletable · 409
The workspace is its organization's last one, so the API kept it.
All pages
You can't delete the only workspace left in an organization. The first one is not special: any workspace can be deleted while its organization has another.
Besides the members every error carries, this type adds workspaceId.
- The organization has no other workspace.
- To delete it, create another workspace in the same organization first with
POST /v1/workspaces(name,organizationId), then delete this one. - To stop paying for what runs in it, delete its services instead, if the user agrees.
json
{
"type": "workspace-last-undeletable",
"title": "Last Workspace Cannot Be Deleted",
"detail": "This is the organization's last workspace. Create another one before deleting it.",
"workspaceId": "0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401",
"requestId": "req-1785231000000-4f7b2c9ae",
"timestamp": "2026-07-28T09:30:00.000Z",
"path": "/v1/workspaces/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401",
"method": "DELETE",
"instance": "DELETE /v1/workspaces/0199e0a3-6f21-7c4a-9d18-2b7c5f3ad401",
"status": 409,
"docs": "https://ghaym.me/docs/errors/workspace-last-undeletable"
}