I have a workflow that runs as real-time process and when a certain case status is selected, a task is being created with due date that's 10 days from creation date. When the case status changes to something else, the task due date is set to today's date and task needs to be removed/deleted from the user's list of tasks.
How can tasks be removed/expired/deleted from the list of user's tasks?