---
title: "Cancels a data deletion request"
method: PUT
path: "/api/v2/deletion/requests/{id}/cancel"
tags: ["Data Deletion"]
---

# Cancels a data deletion request

`PUT /api/v2/deletion/requests/{id}/cancel`

Cancels a data deletion request by providing its ID.

## Path parameters

- `id` string, required

## Response `200`

OK

- CancelDataDeletionResponseBody — The response from the cancel data deletion request endpoint.
  - `data` DataDeletionResponseItem — The created data deletion request information.
    - `attributes` DataDeletionResponseItemAttributes, required — Deletion attribute for data deletion response.
      - `created_at` string, required — Creation time of the deletion request.
      - `created_by` string, required — User who created the deletion request.
      - `from_time` integer, required — Start of requested time window, milliseconds since Unix epoch.
      - `indexes` string[] — List of indexes for the search. If not provided, the search is performed in all indexes.
      - `is_created` boolean, required — Whether the deletion request is fully created or not. It can take several minutes to fully create a deletion request depending on the target query and timeframe.
      - `org_id` integer, required — Organization ID.
      - `product` string, required — Product name.
      - `query` string, required — Query for creating a data deletion request.
      - `starting_at` string, required — Starting time of the process to delete the requested data.
      - `status` string, required — Status of the deletion request.
      - `to_time` integer, required — End of requested time window, milliseconds since Unix epoch.
      - `total_unrestricted` integer, required — Total number of elements to be deleted. Only the data accessible to the current user that matches the query and timeframe provided will be deleted.
      - `updated_at` string, required — Update time of the deletion request.
    - `id` string, required — The ID of the created data deletion request.
    - `type` string, required — The type of the request created.
  - `meta` DataDeletionResponseMeta — The metadata of the data deletion response.
    - `count_product` object — The total deletion requests created by product.
    - `count_status` object — The total deletion requests created by status.
    - `next_page` string — The next page when searching deletion requests created in the current organization.
    - `product` string — The product of the deletion request.
    - `request_status` string — The status of the executed request.

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `412` — Precondition failed error
- `429` — Too many requests
- `500` — Internal server error

---

[API](https://skmtc.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
