---
title: "Bulk delete publishing jobs by status"
method: DELETE
path: "/api/v1/publishing/purge"
tags: ["Publishing"]
---

# Bulk delete publishing jobs by status

`DELETE /api/v1/publishing/purge`

Removes all bundles matching the specified status filter. Cannot purge in-progress bundles (BUNDLING, SENDING_TO_ENDPOINTS, PUBLISHING_BUNDLE). If no status specified, uses safe defaults (all terminal + queued statuses). IMPORTANT: This endpoint processes asynchronously. Results are delivered via WebSocket system messages to browser clients. Non-browser API clients will not receive completion notifications.

## Query parameters

- `status` string

## Response `200`

Purge operation initiated (processes in background). The result is delivered as a system notification to the triggering user's browser session. Non-browser API clients will not receive the completion event.

- ResponseEntityPurgeView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` PurgeResultView
    - `message` string, required — Confirmation message indicating the purge operation has started
    - `statusesRequested` string[], required — List of status names being purged
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `400` — Invalid status value or attempted to purge in-progress statuses
- `401` — Unauthorized - authentication required
- `403` — Forbidden - insufficient permissions

---

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