Remove an Invoice Line Item via API

Remove an Invoice Line Item via API

Hi,

I am wondering if anyone knows how you can remove an invoice line item via the API? When I update the Line Items via the API it does not remove any that I don't specify. I am trying to do a mass update of Invoices where 1 line item product is replaced by a different product but all I seem to be able to do is add to the line items. The original line item is not removed when it is not specified in the new list of Product Details.

Thanks,
Michael