Delete process variables and history after process instance completed

Hi @aminmc,

You need to configure historyTimeToLive in the process definition (1) and then you can either trigger the history cleanup manually (2) or configure it to run all the time/specific times (3).

Setting historyTimeToLive=0 will mean the historic process instances (and their data) will be ready for delete after they finished.

(1): https://docs.camunda.org/manual/7.9/user-guide/process-engine/history/#history-time-to-live
(2): https://docs.camunda.org/manual/7.9/user-guide/process-engine/history/#manual-run
(3): https://docs.camunda.org/manual/7.9/user-guide/process-engine/history/#periodic-run

Best regards,
Yana