How to delete Camunda Incident

Hello Dear Camunders,

I would like to ask I hope a very trivial question, how to handle incidents which doesn’t belong to any process instance nor definition.

E.G.
My database shows 2 incidents:


Cockpit shows 0 incidents

How am I supposed to delete these incidents?

Thank you for any support

M.

Hi,

You can resolve the incidents by RuntimeService#resolveIncident or Rest API:
https://docs.camunda.org/manual/7.10/reference/rest/incident/resolve-incident/

Hello Yana,

First of all thank you for the response

I have tried the rest Rest API solution and unfortunately got the following

Hi,

This means that the incident was create due to failing job, which I assume is from a batch execution.
You can verify that in Batch view in Cockpit:
https://docs.camunda.org/manual/7.10/webapps/cockpit/batch/monitoring/
In case you no longer need this failed batches and the respective jobs you can delete them and the incidents will be deleted with them.

1 Like

Thank you @Yana

It seems this API does not work. I’ve tried calling it in a variety of different ways including the way suggested and still the incidents are appearing in cockpit.