Method no longer available

This method no longer there. Is there any alternative?

commandContext.getHistoricProcessInstanceEntityManager().deleteHistoricProcessInstanceById(processInstanceId);

Yes, there’s the HistoricProcessInstanceEntityManager().delete(processInstanceId); method.

Best regards,

Tijs