Cancel Credit Memo
To cancel a credit memo you will first need to void the refund payment, if a refund has been issued for the credit invoice.
Go to Income -> Payments -> Void Payments.
Select a time period in order to locate the payment along with the customer's name, and then check the box to void the refund.
After voiding, go to Income -> Invoices and locate the credit invoice to edit it.
Click the Unpost button at the top of the page. After unposting the invoice you will then have a Delete button available. Click Delete to get rid of the credit invoice.