I am trying to write a process that will remove unwanted agents and objects from clients using the API.
I have written the logic that will, given an agent name passed in:
If any of the objects are open when we try and delete them the process complains. Is there a way we can see if the object is open, close if it is and then continue with the delete?
If this process deems the objects and agents need deleting then ideally any jobs that are open/active should still be removed. i.e. It would just ignore the fact they are open/active.