Try it free

Cancel a record deletion task

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Cancel an in-progress record deletion task in Dynatrace with the Grail Storage Record Deletion API. It stops queued subtasks and returns accepted cancellation.

POSTSaaShttps://{your-environment-id}.apps.dynatrace.com/platform/storage/record/v1/delete:cancel

Overview

You provide the taskId in the request body to cancel a submitted record deletion process. Dynatrace cancels subtasks that have not started yet and returns an accepted response for the cancellation request.

Authentication

To execute this request, you need a platform token or OAuth access token with storage:records:delete scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
bodyDeletedRecordsProcess

Cancel request

bodyRequired

Request body objects

The DeletedRecordsProcess object

ElementTypeDescriptionRequired
taskIdstring-Required

Request body JSON model

This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.

{
"taskId": "49eb7d8e-806a-4829-9d29-c2a92e642366"
}

Response

Response codes

CodeTypeDescription
202CancelDeleteRecordsResponse

Accepted cancellation of the submitted record deletion process.

204-

There is no deletion task to cancel.

400ErrorEnvelope

Bad request for cancelling the submitted record deletion process.

401ErrorEnvelope

Unauthorized.

403ErrorEnvelope

Access forbidden.

Response body objects

The ErrorEnvelope object

ElementTypeDescription
errorExceptionalReturn-

The ExceptionalReturn object

ElementTypeDescription
codeinteger-
errorDetails(CustomValidationErrorInfo | InvalidAuditEventsErrorInfo | MediaTypeErrorInfo | ParameterErrorInfo | ProxyErrorInfo | QueryFrontendRawErrorInfo | RequestBodyErrorInfo)[]-
messagestring-

The CustomValidationErrorInfo object

The ErrorInfo object

ElementTypeDescription
messagestring-

The InvalidAuditEventsErrorInfo object

The MediaTypeErrorInfo object

The ParameterErrorInfo object

The ProxyErrorInfo object

The QueryFrontendRawErrorInfo object

The RequestBodyErrorInfo object

Response body JSON models

{
"error": {
"code": 1,
"errorDetails": [
{
"message": "string"
}
],
"message": "string"
}
}
Related tags
Platform APIDynatrace Platform