VMware Aria Automation Tools

 View Only
  • 1.  Delete a vRO Scheduled Task

    Posted Sep 28, 2021 12:35 AM

    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?  



  • 2.  RE: Delete a vRO Scheduled Task
    Best Answer

    Posted Sep 28, 2021 03:38 PM

    If you have the Task object, call the .cancel() function of it.



  • 3.  RE: Delete a vRO Scheduled Task

    Posted Sep 28, 2021 03:49 PM

    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,