---
title: "Delete a workspace"
method: DELETE
path: "/api/projects/{projectId}/workspaces/{workspaceId}"
tags: ["Workspaces"]
---

# Delete a workspace

`DELETE /api/projects/{projectId}/workspaces/{workspaceId}`

Delete a workspace. Deletes or detaches the target resource and returns the action status.

## Query parameters

- `deleteFiles` boolean

## Response `200`

Workspace deleted

- MessageResponse — Generic action result message used by endpoints that do not return a dedicated resource.
  - `message` string — Human-readable status or error message.
  - `status` string — Current status value.
  - `success` boolean — Whether the requested action succeeded.

---

[API](https://skmtc.net/ibuildthecloud/apis/discobot-server-api.md) · [All operations](https://skmtc.net/ibuildthecloud/apis/discobot-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ibuildthecloud/discobot-server-api/versions/4de3fcd6be56/schema)
