We're making use of the scheduled WFs and are looking for a way to clean up the clutter. Right now we have months worth of completed scheduled WF tasks but no automated way to clean them up. I created a new WF and I can return a list of all the objects of type "task" and loop through them to figure out which ones have already completed. So I got my list, but I don't see a method to delete them. Has anyone done this before?
If you have the Task object, call the .cancel() function of it.
If you have the Task object, call the .cancel() function of it.
I did see that method, but I was assuming cancel just stopped a scheduled run. Will cancel actually delete the task out of the scheduled section? I'll test it shortly. Thanks,