We use the API to clear history. We noticed that nothing was deleted in the database, and those instances are still available in Cockpit. Additionally, if we repeat the same request, the batch has the same number of instances to delete.
Hi @josips
Welcome to the forum,
Can you give some details of what version of Camunda you’re using?
Is there a reason why you’re not using the automatic history cleanup mechanism?
This API call is supposed to delete running process instances only based on historic query so history is not supposed to get cleaned up using this call.
And we are using automatic history cleanup mechanism but we notice that cleanup didn’t clean old instances. We changed the TTL afterwards, more specifically we reduced the TTL, but the cleanup did not delete the completed instances.