How to void a deposit

You cannot directly void an entire deposit. You can void individual receipts. Use the Bank Account/Void/Receipts command.
Print the Deposits Journal to get the receipt numbers that were in the deposit.
Print the Deposits Journal to get the receipt numbers that were in the deposit.