Hi Thorben,
Thanks for the quick help.
We tried the "official way" with HistoryService#deleteHistoricProcessInstance.
This worked in one of our test installations.
But on the productive installation it somehow failed.
Here's the java class we've written:
http://pastebin.com/DUgjgcqb
It provides some REST mehtods to query historic information as well as deleting historic finished process instances.
In our productive system we weren't able to delete historic process instances because there was a lock problem with database table ACT_GE_BYTEARRAY.
Problem is that HistoryService#deleteHistoricProcessInstance somehow locks the table ACT_GE_BYTEARRAY and then subsequently isn't able to delete any records from this table. Like it's tricking itself. (server log is
http://pastebin.com/BdzRQ8Ed)
We're using camunda 7.1.0 (prepackged with jboss downloaded from camunda page) with mysql and hibernate. Do you have any ideas?