Hi Gil,
1) If you want to reverse a check, including the GL entries, then you can do this from the Check Reconciliation function. Make sure you choose to 'Reverse' the check status, rather than 'Void' it, because Reversing will automatically generate the reversing GL transactions.
2) I'm assuming that when you posted the Pre-payment, you did not include an Invoice number as an applied document. You don't have to do this.
After posting the Pre-payment and the invoice, it sounds like you followed the correct procedure; creating a zero dollar cash entry and apply it to both the invoice and the pre-payment.
Make sure that you do not have the 'Print Check' checkbox selected on this last check because you don't really want to print it. Also make sure that you enter something into the Check number field because it cannot be blank. You should then be able to post that entry - to be sure, make sure that it is the only check in the batch.
Regards,