VMware Cloud Community
mastefani
Enthusiast
Enthusiast
Jump to solution

Delete a vRO Scheduled Task

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?  

0 Kudos
1 Solution

Accepted Solutions
xian_
Expert
Expert
Jump to solution

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

View solution in original post

2 Replies
xian_
Expert
Expert
Jump to solution

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

mastefani
Enthusiast
Enthusiast
Jump to solution

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,

0 Kudos