I can't delete an invoice - why?

I get the message "An error occurred! You cannot delete an invoice that has been booked." when trying to delete an invoice.

It is not possible to delete an invoice that has been booked.

You instead have the possibility to credit the invoice.

Here you can read about creating a credit note to offset the invoiced products.