How to delete a task with a given task Id programmatically, there’s no rest endpoint for deleting a task.
Look at https://docs.camunda.org/manual/latest/reference/rest/process-instance/post-modification/, which should work for your use case. Because a User Task is just a special type of activity.
2 Likes
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
I am not able delete Can you tell me clearly what to do to delete unwanted tasks