Deleting Checked Out Workflows

jmiskey
Kilo Sage

In our DEV system, there are a handful of old workflows (Workflow Editor, NOT Flow Designer) I have checked out for various reasons.  Sometimes it is because you need to check it out to investigate it and see a "friendlier, more complete view of the details of each action.  Other times, it may be because I was just testing something.  In any event, I usually delete the recent "checked out" version, so it reverts back to the most recent published version before I do any new development work on that workflow.

 

I am experiencing something weird.  I had about 10 checked out workflows (all in the Global).  I opened them up, one-by-one, went to the Context Menu (hamburger) and clicked on "Delete" to delete the checked out version.  I was able to do this on 7 of them.  But the other 3, which still show as "checked out by me", do not give me an option to Delete them when I go to the Context Menu. 

 

Why would that be?  I am not sure why these are behaving differently.  I want to delete the current check out versions so I can start making new changes (and not pick up anything else I may have been messing around with/testing before).

 

Thanks

1 ACCEPTED SOLUTION

Hi,

There was a comment in the other thread that said the same thing...they could delete some but not all of them.

As far as deleting them, I don't think you can pick it based on date. I would check Executing Activities or Active Contexts to make sure there is nothing currently active / tied to the sys_id of what you want to delete before you delete it and I would export it to XML just in case you need it again. I would look to stay with the one that won't damage any open tickets since each workflow creates an instance tied to a record. Or run it from a fix script so you can always rollback from the delete.

View solution in original post

11 REPLIES 11

Updating the bad version to unpublished did not allow me to manually delete the checked out version (still no "Delete" option in Context Menu). So I then tried actually deleting it using a Fix Script.  Still no luck.  So then I also deleted the checked out version using a Fix Script, and that finally worked!

 

So I had to use the Fix Script to:

- delete the duplicate "published" version that was not being used

- delete the checked out version

Nice job! Glad to hear that you got it worked out.