How can I delete a task?

How to delete a task with a given task Id programmatically, there’s no rest endpoint for deleting a task.

Look at, which should work for your use case. Because a User Task is just a special type of activity.


This worked, @scepbjoern Thanks a lot.
For someone else having the same question, get the activityInstanceId of the task you want to delete using process-instance/{id}/activity-instances and then use the above url mentioned by @scepbjoern to cancel using the activityInstanceId