Entry deletion is executed by codeunit 23 (Item Jnl.-Post Batch) so you should call codeunit 23 instead.
Codeunit 23 then calls 22.
Entry deletion is executed by codeunit 23 (Item Jnl.-Post Batch) so you should call codeunit 23 instead.
Codeunit 23 then calls 22.