Delete a completed workflow instance from K2

  • 22 September 2015
  • 1 reply
  • 17 views

Badge +1

Is there a way of removing a single COMPLETE Instance of a Workflow?  I can delete 'in progress' instances using the Management console, but am drawing a bit of a blank as to how to remove a completed one.

 

Is there some SQL code i can run to remove this from the database or can i get to this via code using one the APIs?

 

Any guidance greatfully received.

 

Thanks,

Helen


1 reply

Userlevel 5
Badge +16

Hi Helen,

 

Check the following threads:

 

http://community.k2.com/t5/K2-blackpearl/how-to-delete-process-instance-programmatically/td-p/40885

 

http://community.k2.com/t5/K2-blackpearl/Delete-Process-Instance-Via-Stored-Proc-SQL/td-p/42511

 

http://www.deepcode.co.uk/2010/04/programmatically-clear-down-k2-process.html

 

why you can't delete  'in progress' instances using the Management console?

if you are facing troubles in a DEV enviironment in deleteing instances, deleting the version of the workflow would be a safe solution.

if you want to delete the version you'll clear the history too, so you delete all the instances of this version.

Reply