In this case, "delete invoice" is greyed out. You can still delete it by following these steps:
- Unlock the invoice.
- Remove all invoice items (lines / rows).
- Edit the invoice details block, where the invoice ID is visible.
- Remove the invoice ID (so that it has no contents) and save.
- The invoice has now been reverted to "Draft" status. Now, you can remove the invoice.