---
title: "DELETE /v1/workspaces/{workspaceId}"
method: DELETE
path: "/v1/workspaces/{workspaceId}"
tags: ["Workspaces"]
---

# DELETE /v1/workspaces/{workspaceId}

`DELETE /v1/workspaces/{workspaceId}`

## Request

- Base URL: `https://api.atlas-compiler.com`
- URL: `https://api.atlas-compiler.com/v1/workspaces/{workspaceId}`
- Auth: HTTP bearer

## Path parameters

- `workspaceId` string, required

## Headers

- `idempotency-key` string, required: Deduplicates only after current authentication and authorization succeed. Demotion or revocation can make replay unavailable.

## Response `202`

Workspace deletion accepted.

- object
  - `completedAt` string, date-time, nullable, required
  - `id` string, required
  - `requestedAt` string, date-time, required
  - `stage` 'requested' | 'execution_stopped' | 'webhooks_disabled' | 'billing_detached' | 'artifacts_deleted' | 'metadata_anonymized_or_deleted' | 'retention_records_preserved' | 'completed', required
  - `updatedAt` string, date-time, required
  - `workspaceId` string, required

## Other responses

- `400`: RFC 9457 problem.
- `401`: RFC 9457 problem.
- `403`: RFC 9457 problem.
- `404`: RFC 9457 problem.
- `409`: RFC 9457 problem.
- `500`: RFC 9457 problem.
- `503`: RFC 9457 problem.

---

[API](https://skmtc.dev/atlas-compiler/apis/atlas-backend-api.md) · [All operations](https://skmtc.dev/atlas-compiler/apis/atlas-backend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/atlas-compiler/apis/atlas-backend-api/revisions/a43b60619cdf?raw)
