How to delete process instance in community version

How to delete process instance in community version

I have read this document: Delete Process Instance | docs.camunda.org

And tried like below but giving error, please let me know where I am doing wrong. Thank you.

POMEngine is my camunda process engine name (I am trying with spring booth camunda).

Thanks,
Venkaiah.

Hi @venky1982

The request must be HTTP DELETE, not HTTP POST.
By default you should not have to specify the process engine - did you change the name?

BR
Michael

2 Likes

Thank you Michael, for your response.

Yes, I have given a new name for camunda engine like below in spring properties:
camunda.bpm.process-engine-name=POMEngine

I have changed to DELETE but still showing same error:

Here the instance id is in incident state so I want to delete the existing instance (which is in failure state) and want to create a new instance with same data but unable to find the delete option in cock pit so tried this way and not working. please help here where I am doing wrong. Thank you.

Thanks,
Venkaiah.

@venky1982 try by removing DELETE from the api endpoint and keep the http request to DELETE. Like → localhost:5905/engine-rest/engine/POMEngine/process-instance/
You can also delete from cockpit by going into the running process instance.
image

Hope this helps!

1 Like

Thank you so much Arjun, it helped.

Thanks,
Venkaiah.

1 Like