If you need to delete a payment that is part of a deposit, you can do so, as long as the Deposited toggle is set to No i.e. it hasn't been deposited yet.
How to delete a payment on a Deposit
Step Action
1. Select {Accounting} on the navigation menu and click on the {Deposits} tab.
2. Select the Edit Pencil next to the deposit number you are interested in.
3. Under the Payments section, check off the payment and select the {Delete} button.