When your customer has an availble credit, you may delete it doing the following.
Create the order/invoice with the amount on the credit avaible on the customer
Pay the invoice > Cash > Credit available > Done > Continue complete the payment
Go back to the invoice created and void it
Delete the payments made
Delete the order