10-23-2019 06:22 AM
Hello,
I am using Alfresco Process Services Enterprise 1.9 version. Now, I haven't created any App or Process definitions.
I navigated to 'Task App' and started Tasks using 'CREATE TASK' button. I can see this task in My Tasks and I completed it to as well. I have few tasks in My tasks as well as in Completed tasks.
Now, I want to delete all these tasks. How can I do this using any OOTB API? Is there a way I can delete?
I tried deleting these tasks using DELETE /enterprise/tasks/{taskId} API. However, it is giving me below error.
While deleting completed tasks: i got this error.
While deleting In-Progress tasks: I got this.
Thanks,
Jigir Shah
10-29-2019 01:31 AM
You can create your custom API to delete tasks using the taskService.deleteTasks(Collection<String> taskIds, boolean cascade) (you might need to end it before deleting)
Explore our Alfresco products with the links below. Use labels to filter content by product module.