---
title: "Batch delete requests from default request queue"
method: DELETE
path: "/v2/actor-runs/{runId}/request-queue/requests/batch"
tags: ["Default request queue"]
---

# Batch delete requests from default request queue

`DELETE /v2/actor-runs/{runId}/request-queue/requests/batch`

Batch-deletes requests from the default request queue of the Actor run.

This endpoint is a shortcut for getting the run's `defaultRequestQueueId` and then using the
[Delete requests](/api/v2/request-queue-requests-batch-delete) endpoint.

## Path parameters

- `runId` string, required

## Query parameters

- `clientKey` string

## Headers

- `Content-Type` 'application/json', required

## Request body

- RequestDraftDelete[]
  - union — A request that should be deleted.
    - RequestDraftDeleteById — A request that should be deleted, identified by its ID.
      - `id` string, required — A unique identifier assigned to the request.
      - `uniqueKey` string — A unique key used for request de-duplication. Requests with the same unique key are considered identical.
    - RequestDraftDeleteByUniqueKey — A request that should be deleted, identified by its unique key.
      - `id` string — A unique identifier assigned to the request.
      - `uniqueKey` string, required — A unique key used for request de-duplication. Requests with the same unique key are considered identical.

## Response `200`

- BatchDeleteResponse — Response containing the result of a batch delete operation.
  - `data` BatchDeleteResult, required — Result of a batch delete operation containing successfully deleted and failed requests.
    - `processedRequests` DeletedRequest[], required — Requests that were successfully deleted from the request queue.
      - union — Confirmation of a request that was successfully deleted from a request queue.
        - DeletedRequestById — Confirmation of a request that was successfully deleted, identified by its ID.
          - `uniqueKey` string — A unique key used for request de-duplication. Requests with the same unique key are considered identical.
          - `id` string, required — A unique identifier assigned to the request.
        - DeletedRequestByUniqueKey — Confirmation of a request that was successfully deleted, identified by its unique key.
          - `uniqueKey` string, required — A unique key used for request de-duplication. Requests with the same unique key are considered identical.
          - `id` string — A unique identifier assigned to the request.
    - `unprocessedRequests` RequestDraft[], required — Requests that failed to be deleted and can be retried.
      - `id` string — A unique identifier assigned to the request.
      - `uniqueKey` string, required — A unique key used for request de-duplication. Requests with the same unique key are considered identical.
      - `url` string, required — The URL of the request.
      - `method` 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH'

## Other responses

- `400` — Bad request - invalid input parameters or request body.
- `401` — Unauthorized - authentication required or invalid token.
- `403` — Forbidden - insufficient permissions to perform this action.
- `404` — Not found - the requested resource does not exist.
- `405` — Method not allowed.
- `413` — Payload too large - the request body exceeds the size limit.
- `415` — Unsupported media type - the Content-Encoding of the request is not supported.
- `429` — Too many requests - rate limit exceeded.

---

[API](https://skmtc.net/apify/apis/apify-api.md) · [All operations](https://skmtc.net/apify/apis/apify-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/apify/apify-api/versions/01a71794279b/schema)
