How to remove invoice items for deleted batch

Dear concern,

I am using sage erp 100.

I accidentally deleted batch . Now can not post invoices. But these invoices hold items which are not available for sale. I want to cancel or delete these invoices.

Please help me to solve this problem