v1
latestOpenAPI 3.0.02026-07-141,4077,1665.2 MBData Deletion
Creates a data deletion request
Creates a data deletion request by providing a query and a timeframe targeting the proper data.
post/api/v2/deletion/data/{product}
Path parameters
productstring required
Name of the product to be deleted, either logs or rum.
Request body
Example request
{
"data": {
"attributes": {
"from": 1672527600000,
"indexes": [
"test-index",
"test-index-2"
],
"query": {
"host": "abc",
"service": "xyz"
},
"to": 1704063600000
},
"type": "create_deletion_req"
}
}Response
OK
Example response
{
"data": {
"attributes": {
"created_at": "2024-01-01T00:00:00.000000Z",
"created_by": "test.user@datadoghq.com",
"from_time": 1672527600000,
"indexes": [
"test-index",
"test-index-2"
],
"is_created": true,
"org_id": 321813,
"product": "logs",
"query": "service:xyz host:abc",
"starting_at": "2024-01-01T02:00:00.000000Z",
"status": "pending",
"to_time": 1704063600000,
"total_unrestricted": 100,
"updated_at": "2024-01-01T00:00:00.000000Z"
},
"id": "1",
"type": "deletion_request"
},
"meta": {
"count_product": {
"logs": 8,
"rum": 7
},
"count_status": {
"completed": 10,
"pending": 5
},
"next_page": "cGFnZTI=",
"product": "logs",
"request_status": "canceled"
}
}