Process deletion in bulk for specific tenant

  1. Is it possible to delete bulk of running process instances/task instances including complete history data for specific tenant?

  2. If we delete process definition for that tenant, will it remove runtime+history data of that tenant?

Hi @aravindhrs,

  1. from the docs I don’t see a query parameter for the tenant ID: https://docs.camunda.org/manual/7.11/reference/rest/process-instance/post-delete/. You have to query for process instances of a tenant first and pass the ids to the DELETE call.

  2. if you call it with cascade=true, yes.

Hope this helps, Ingo

@Ingo_Richtsmeier thanks. I found in the docs(DELETE processdefinition/{procDefKey}) that if we remove process-definition it will remove runtime+historic data too. As you said, we need to set cascade=true.

Thanks again.

my hack

https://github.com/philcolbourn/Camunda-delete-deployments/blob/main/README.md