Cancel a purge API task

Version:

You can use the xConnect Web API to cancel a purge task.

To cancel the task:

  • Use the following PUT request and substitute the {{TaskId}} parameter with the ID of the ongoing registered task:

    <instance>/sitecore/api/datatools/purge/tasks/{{TaskId}}/cancel
    Note

    The task cancellation is not an immediate process because the in-progress batch of contacts completes, and the task still purges the related data.

If you have suggestions for improving this article, let us know!