Payment compound invoice- deletion

If anybody know how to delete the payment for Compound Invoice

I did the following and It works:

  1. Delete the bank Entries
  2. Delete the corresponding two compound Invoices
  3. Re-Enter the Compound Invoice that has been deleted
  4. Re-Enter the Correct Payment

There was something that Pop-ups but Just restart your server

If some of you Guys knows how to delete a payment for compound Invoice, Please share