Follow the instruction for how to delete a deposit in quickbooks
Go to the QuickBooks homepage and click on the record icon to open the "make deposit" screen.
If the payment to deposit screen appears instead, click on cancel to close it and proceed.
Select the "previous" icon to take you to the intended screen and scroll to look for the deposit you want to remove the payment from.
Choose the payment you want to remove and click on "edit" from the options.
Then click on "delete line" under the edit menu to delete a payment in Quickbooks.
Then select ok to confirm the removal of the payment.
Click on save and then close.
On the QuickBooks homepage, select Record Deposits.
The Make Deposit window gets loaded.
Choose Cancel if Payments to Deposit opens.
Choose the Previous icon and navigate through the deposits to locate the required one.
Select the payment you wish to delete.
Click on Edit.
Choose Delete Line.
This will work with different versions of QuickBooks like QuickBooks Desktop or QuickBooks enterprise.