---
title: "POST /v1/indexing/{+name}/items:deleteQueueItems"
method: POST
path: "/v1/indexing/{+name}/items:deleteQueueItems"
tags: ["indexing"]
---

# POST /v1/indexing/{+name}/items:deleteQueueItems

`POST /v1/indexing/{+name}/items:deleteQueueItems`

Deletes all items in a queue. This method is useful for deleting stale items. This API requires an admin or service account to execute. The service account used is the one whitelisted in the corresponding data source.

## Path parameters

- `name` string, required

## Request body

- DeleteQueueItemsRequest
  - `connectorName` string — The name of connector making this call. Format: datasources/{source_id}/connectors/{ID}
  - `queue` string — The name of a queue to delete items from.
  - `debugOptions` DebugOptions — Shared request debug options for all cloudsearch RPC methods.
    - `enableDebugging` boolean — If you are asked by Google to help with debugging, set this field. Otherwise, ignore this field.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/cloudsearch.md) · [All operations](https://skmtc.dev/google/apis/cloudsearch/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/cloudsearch/revisions/d64d6afc59a6/schema)
