If you create an invoice by mistake, you can cancel it as follows:
You cannot cancel invoices that have had payments allocated to them, you'll need to delete the payments first.
Topic: Accounts