Historic instance deletion

Hi,

Do we have any provision or any functionality, In which we can set time, so after that time the completed instance will be deleted automatically ? Currently we delete the instances manually.

Thanks,
Divyesh

I am interested in how to make this process happen as well.
Thanks!

There’s upcoming support for this, where the queries can now trigger a delete, see this unit test for example: https://github.com/flowable/flowable-engine/blob/master/modules/flowable-engine/src/test/java/org/flowable/engine/test/bpmn/HistoricDataDeleteTest.java#L45

There are also settings to enable automatic cleanup, as you describe above, see https://github.com/flowable/flowable-engine/blob/master/modules/flowable-engine/src/main/java/org/flowable/engine/impl/cfg/ProcessEngineConfigurationImpl.java#L756

For the automatic cleanup, is that something that can be set by an external config, or does that require a code change?

That’s set on the engine configuration. That’s the enableHistoryCleaning and historyCleaningTimeCycleConfig properties from the second link.