---
title: "Delete a workspace"
method: DELETE
path: "/admin/workspaces/{workspaceId}"
tags: ["Admin"]
---

# Delete a workspace

`DELETE /admin/workspaces/{workspaceId}`

## Request

- Base URL: `https://cloud.kaneo.app/api`
- URL: `https://cloud.kaneo.app/api/admin/workspaces/{workspaceId}`
- Auth: HTTP bearer

Permanently delete a workspace and everything in it, archived or not, the same way its owner can: projects, tasks, members, invitations and uploaded files go, and open realtime connections are closed. The administrator does not need to be a member. Requires the `workspaces:delete` instance permission; API keys are rejected.

## Path parameters

- `workspaceId` string, required

## Response `200`

The deleted workspace

- AdminDeletedWorkspace
  - `id` string, required

## Other responses

- `401`: Missing or invalid credentials
- `403`: The caller lacks the instance permission or is authenticated with an API key
- `404`: Workspace not found
- `409`: The workspace still has an active subscription (code WORKSPACE_HAS_ACTIVE_SUBSCRIPTION)
- `429`: The API key exceeded its rate limit or usage quota. Wait the number of seconds in Retry-After before retrying. The X-RateLimit headers are sent only when the rate limit was hit.

## Changes

- **2026-10-27** `bbaae0ea62c6`: 1 info
  - endpoint added
- **2026-10-27** `d7d92f47083a`: 1 breaking
  - api path removed without deprecation
- **2026-10-27** `6d2e646045ea`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/usekaneo/apis/kaneo-api/changes/admin/workspaces/:workspaceId/delete.md)

---

[API](https://skmtc.dev/usekaneo/apis/kaneo-api.md) - [All operations](https://skmtc.dev/usekaneo/apis/kaneo-api/llms.txt) - [OpenAPI document](https://skmtc.dev/usekaneo/apis/kaneo-api/revisions/741a49dfb347?raw)
