Delete process definition with failed/active instances

Hi,

I am looking for a way to delete a process definition which has instances in ACTIVE state.
I tried suspending the instances and then a DELETE on process definition. But did not help.

Thanks in advance.
Deepika

Did you try deleting it via the REST API?

@Niall

Hi, thanks for a nice Camunda Con 2019 in Berlin!

I have listed the deployed process definitions with the following rest call:

http://camunda/rest/deployment

How do I safely delete all the ones I want to get rid off? Will also following subprocesses, data, etc be safely deleted?

Br

Frank

1 Like

Hi @deepu.v87

Did you solve your problem?

Br

Frank

Hi Frank,
I’d suggest you use this call and simply make sure you add the cascade variable, set to true.

1 Like

@Niall

Thanks! Will try it out!

Br

Frank

Hi @FrankReneSorensen,

another option is to delete the complete Deployment entity with all process definitions and process instances included: https://docs.camunda.org/manual/7.12/reference/rest/deployment/delete-deployment/

What’s your choice? (And your requirement)

Cheers, Ingo

i need to delete all process instances that are completed (eliminate instances, audit data, variables, everything)