---
title: "Delete a workbench"
method: DELETE
path: "/v1/workbenches/{id}"
tags: ["Workbenches"]
---

# Delete a workbench

`DELETE /v1/workbenches/{id}`

## Request

- Base URL: `http://localhost:9998`
- URL: `http://localhost:9998/v1/workbenches/{id}`
- Auth: HTTP bearer

Deletes the workbench and its Asset. Leaf-only: an Asset derived from the workbench
refuses the delete with `has_descendants`. Mirrors `workbench_delete`.

## Path parameters

- `id` string, required

## Query parameters

- `expectedRevision` integer

## Response `200`

The deleted workbench's id

- WireWorkbenchDeleteResponse
  - `id` string, required
  - `deleted` boolean, required

## Other responses

- `400`: Invalid request
- `404`: No workbench with that id
- `409`: `revision_conflict`, or `has_descendants`: Assets were made from it.
- `503`: The Asset store is not ready

---

[API](https://skmtc.dev/modelpiper/apis/toolpiper-api.md) · [All operations](https://skmtc.dev/modelpiper/apis/toolpiper-api/llms.txt) · [OpenAPI document](https://skmtc.dev/modelpiper/apis/toolpiper-api/revisions/6722bf56385c?raw)
