Hi I am trying to delete process instances using /POST Async Delete REST-API from Camunda 7.11. We were able to get the response when calling this API but process instances count is not getting reduced. I there any mistake ? below is the code snippet
const options = {
method: 'POST',
uri: `localhost:8080/engine-rest/process-instance/delete`,
headers,
body:{
processInstanceIds:processInstanceIds,
deleteReason : "Removed Process Instances via Script",
"skipCustomListeners":true,
"skipSubprocesses":true,
},
json: true
};
request(options).then(data=>{
return data;
}).catch(e=> throw e;);
Kindly help me out.