---
title: "Delete workloads in bulk"
method: POST
path: "/api/v1beta/workloads/delete"
tags: ["workloads"]
---

# Delete workloads in bulk

`POST /api/v1beta/workloads/delete`

Delete multiple workloads by name or by group asynchronously.
Returns 202 Accepted immediately. Deletion happens in the background.

## Request body

- union
  - object
  - PkgApiV1BulkOperationRequest
    - `group` string — Group name to operate on (mutually exclusive with names)
    - `names` string[] — Names of the workloads to operate on

## Response `202`

Accepted - deletion started

- string

## Other responses

- `400` — Bad Request

## Changes

> 49 revisions in range; 4 could not be searched.

- **2026-03-17** `8ab2f5690c97` — 1 breaking, 1 info
  - removed `#/components/schemas/v1.bulkOperationRequest` from the request body `oneOf` list
  - added `#/components/schemas/pkg_api_v1.bulkOperationRequest` to the request body `oneOf` list
- **2026-01-29** `ff6ce8dd8f3a` — 1 breaking, 1 info
  - removed `#/components/schemas/pkg_api_v1.bulkOperationRequest` from the request body `oneOf` list
  - added `#/components/schemas/v1.bulkOperationRequest` to the request body `oneOf` list

[Change history](https://skmtc.dev/stacklok/apis/toolhive-api/changes/api/v1beta/workloads/delete/post.md)

---

[API](https://skmtc.dev/stacklok/apis/toolhive-api.md) · [All operations](https://skmtc.dev/stacklok/apis/toolhive-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stacklok/toolhive-api/revisions/e9f942effcda/schema)
