---
title: "Delete Workspaces Batch"
method: POST
path: "/v2/workspaces/batch/delete"
tags: ["v2 - Workspaces"]
---

# Delete Workspaces Batch

`POST /v2/workspaces/batch/delete`

## Request

- Base URL: `https://api.jubjubapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jubjubapp.com/v2/workspaces/batch/delete`
- Auth: HTTP bearer

Delete multiple workspaces at once.

Returns which workspaces were deleted and which were not found.
Maximum 100 workspaces per request.
Access: Must have WORKSPACE_DELETE permission for each workspace.

## Headers

- `Authorization` string
- `X-JubJub-Service-Key` string
- `X-JubJub-Agent-Key` string
- `X-JubJub-Platform-Key` string
- `Origin` string
- `Referer` string
- `X-JubJub-Trial-Token` string

## Request body

- BatchDeleteRequest: Request to delete multiple workspaces at once.
  - `workspace_ids` string[], required: List of workspace IDs to delete

## Response `200`

Successful Response

- BatchDeleteResponse: Response from batch delete operation.
  - `deleted` string[], required: IDs that were successfully deleted
  - `not_found` string[], required: IDs that were not found
  - `failed` string[]: IDs whose cascade failed; these workspaces still exist
  - `total_deleted` integer, required: Total count of deleted workspaces

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jubjubapp/apis/jubjub-api.md) - [All operations](https://skmtc.dev/jubjubapp/apis/jubjub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jubjubapp/apis/jubjub-api/revisions/353157b296f2?raw)
