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

# Delete a workspace

`DELETE /workspaces/{workspaceId}`

## Path parameters

- `workspaceId` string, required

## Query parameters

- `remoteNode` string

## Response `204`

Workspace deleted

## Other responses

- `404` — Not found
- `409` — Workspace still contains documents

## Changes

- **2026-08-04** (v1) `2e0161f26b31` — 1 info
  - added the non-success response with the status `409`
- **2026-07-23** (v1) `75b8e91aaf57` — 3 warning
  - added the new `conflict` enum value to the `code` response property for the response status `404`
  - added the new `human_task_resume_failed` enum value to the `code` response property for the response status `404`
  - added the new `payload_too_large` enum value to the `code` response property for the response status `404`
- **2026-05-24** (v1) `8a2d5d3e9608` — 1 warning
  - added the new `rate_limited` enum value to the `code` response property for the response status `404`
- **2026-04-30** (v1) `50e1d517afc1` — 1 info
  - removed the `rate_limited` enum value from the `code` response property for the response status `404`

[Change history](https://skmtc.dev/dagucloud/apis/dagu/changes/workspaces/:workspaceId/delete.md)

---

[API](https://skmtc.dev/dagucloud/apis/dagu.md) · [All operations](https://skmtc.dev/dagucloud/apis/dagu/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dagucloud/dagu/revisions/8d56f368c05a/schema)
