Cancel a Data Deletion Request
Buy with Prime API is now available for early access
Sign up for early access to the Buy with Prime API using the 'Sign Up' button below. The API may change as Amazon receives feedback and iterates on it.
To cancel a data deletion request during the holding period that you specified when you created a data deletion request, you use the cancelPersonalDataDeletionTask
mutation. If the holding period has expired and the data deletion is in progress, this request fails. For details about data deletion, see Delete a Shopper's Personal Data.
The following example shows how to cancel a data deletion request.
Request
// GraphQL mutation
mutation {
cancelPersonalDataDeletionTask(input: {
taskId: "example-task-id"
}) {
taskId
}
}
Response
{
"data": {
"cancelPersonalDataDeletionTask": {
"taskId": "example-task-id"
}
}
}
Error Response (Request is In Progress)
{
"errors": [
{
"message": "The personalDataDeletionTask cannot be cancelled with a status of IN_PROGRESS.",
"locations": [
{
"line": 2,
"column": 3
}
],
"path": [
"cancelPersonalDataDeletionTask"
],
"extensions": {
"classification": {
"type": "ValidationError",
"code": "CannotCancelPersonalDataDeletionTask",
"details": {
"message": "The personalDataDeletionTask cannot be cancelled with a status of IN_PROGRESS."
}
}
}
}
],
"data": {
"cancelPersonalDataDeletionTask": null
}
}
Related topics
Updated about 2 months ago