You may want to void an invoice if you’ve created a duplicate invoice or made an error on a current invoice. Please note that
only unpaid invoices can be voided.

This is a helpful article that will show you how to void an invoice:

Voiding Invoices