Delete process definition versions not having instances

Hello,

I want to delete a process definition’s all versions which have not any process.
How can I do it?

Thanks

@stikic you can query via rest/java api for process definitions with process definition id/key with versions to check process instances count for each version, then you can delete the process definition of that version if it doesn’t have any active instances.

1 Like