---
title: "Delete Requests"
method: PUT
path: "/api/datasubject/v2/requestqueues/bulkdelete/{language}"
tags: ["Request Queues"]
---

# Delete Requests

`PUT /api/datasubject/v2/requestqueues/bulkdelete/{language}`

## Request

- Base URL: `https://hostname`
- URL: `https://hostname/api/datasubject/v2/requestqueues/bulkdelete/{language}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://{hostname}/api/access/v1/oauth/token` scopes: `DSAR_WRITE`

Use this API to delete requests in bulk. The associated subtasks, attachments, and Results Summaries will also be deleted. Request deletion is a permanent action that should be exercised with caution.

## Path parameters

- `language` string, required: A language code that identifies the language in which the request data should be returned, assuming translations are available for that language. Examples: en-us for English, de for German, fr for French, etc.

## Request body

- PrivacyAutomationDataSubjectRequestDSRAutomationRequestQueueBulkDeleteV2Dto
  - `RequestIDs` string[]: An array of 10-character Unique IDs of the Request(s) to be deleted.
  - `CreatedDateRange` PrivacyAutomationDataSubjectRequestDSRAutomationDateRangeDto
    - `StartDate` string: Start date for filter, provide in yyyy-MM-dd'T'HH:mm:ss.SSS'Z' format
    - `EndDate` string: End date for filter, provide in yyyy-MM-dd'T'HH:mm:ss.SSS'Z' format
  - `EndDateRange` PrivacyAutomationDataSubjectRequestDSRAutomationDateRangeDto
    - `StartDate` string: Start date for filter, provide in yyyy-MM-dd'T'HH:mm:ss.SSS'Z' format
    - `EndDate` string: End date for filter, provide in yyyy-MM-dd'T'HH:mm:ss.SSS'Z' format
  - `ModifiedDateRange` PrivacyAutomationDataSubjectRequestDSRAutomationDateRangeDto
    - `StartDate` string: Start date for filter, provide in yyyy-MM-dd'T'HH:mm:ss.SSS'Z' format
    - `EndDate` string: End date for filter, provide in yyyy-MM-dd'T'HH:mm:ss.SSS'Z' format
  - `Status` string: Filter requests by the Stage name. Only requests in this stage will be deleted.
  - `Organization` string: Filter requests by Organization. Only requests in this organization will be deleted.
  - `Country` string: Filter requests by Country code. Only requests with this Country selected will be deleted.
  - `WorkflowID` string: Filter requests by Workflow ID. Only requests using this workflow will be deleted.
  - `WebformID` string: Filter requests by Web Form ID. Only requests using this web form will be deleted.
  - `RequestType` string: Filter requests by Request Type. Only requests with the Request Type will be deleted.
  - `SubjectType` string: Filter requests by Subject Type. Only requests with the Subject Type will be deleted.

## Response `200`

OK

- PrivacyAutomationDataSubjectRequestDSRAutomationRequestQueueBulkDeleteResponseDto
  - `requestsDeleted` integer: Number of requests which are deleted in the API call (up to a maximum of 50 requests).
  - `requestsPending` integer: Number of requests which match the filter criteria which have not been deleted in this call.API should be called again to delete additional requests.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `429`: Too Many Requests. For more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).
- `500`: Internal Server Error

---

[API](https://skmtc.dev/onetrust/apis/privacy-automation-data-subject-request-dsr-automation.md) - [All operations](https://skmtc.dev/onetrust/apis/privacy-automation-data-subject-request-dsr-automation/llms.txt) - [OpenAPI document](https://skmtc.dev/onetrust/apis/privacy-automation-data-subject-request-dsr-automation/revisions/612f0b39b904?raw)
