Async Delete API not working

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.

Hi @aniinprni ,

Do the processes you are trying to remove have any sub-processes, etc?

Best Regards,
dg

No, we don’t have any sub-process for this workflow. a simple workflow.