Confirmation of invoice cancellation

How to cancel an invoice with a credit note