How to delete invoices that have payments applied?

How to delete invoices that have payments applied?

I am familiarizing myself with Books. I created 2 invoices and applied payments. Now I need to delete the payments and invoices.
How do I do that?