---
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`

## Request

- Base URL: `https://docs.anzworldline-solutions.com.au`
- URL: `https://docs.anzworldline-solutions.com.au/api/v1/publishing/purge`
- Auth: none declared
- TypeScript: <https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/docs/api/v1/publishing/purge/delete.ts> (a function with typed inputs; its response is checked against the schema)

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

## Changes

- **2026-10-30** `4fd8e917d458`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/changes/api/v1/publishing/purge/delete.md)

---

[API](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api.md) - [All operations](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/anzworldline-solutions/apis/dotcms-rest-api/revisions/4fd8e917d458?raw)
