To delete a purchase invoice, go to the purchase page. Then find the invoice you want to delete. It will take you to the invoice page.
Click the "Delete" button from the right side of the invoice page.
Click "yes" to delete this invoice.