---
title: "Delete workspace"
method: DELETE
path: "/preview/v2/workspaces/{workspace}"
tags: ["Workspaces"]
---

# Delete workspace

`DELETE /preview/v2/workspaces/{workspace}`

> ⚠️ This endpoint is in [public preview](/preview/roadmap).

Soft-delete a workspace by name or ID. Workspace must be empty (no capacities, instance templates, or images).

## Path parameters

- `workspace` string, required — A resource path like 'sfc:workspace:acme:my-workspace' _or_ an ID. Resource paths are human-readable but not stable - they change when resources are renamed or moved. IDs are stable and permanent.

## Response `204`

Workspace deleted.

## Other responses

- `401` — Unauthorized.
- `404` — Workspace not found.
- `422` — Workspace is not empty.
- `500` — Internal server error.

---

[API](https://skmtc.net/sfcompute/apis/san-francisco-compute-documentation.md) · [All operations](https://skmtc.net/sfcompute/apis/san-francisco-compute-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sfcompute/san-francisco-compute-documentation/revisions/93dd7661e9bb/schema)
