How to delete a payment already recorded on an invoice?

How to delete a payment already recorded on an invoice?

I clicked "I already received payment" on that option at the bottom of the invoice and clicked OK, when I realized I had an uncategorized transaction that is related to this invoice.