Hi there, @lcheung72.
You'll want to go to open the paid invoice and unlinked the deposit from there. Here's how.
In your QuickBooks Online (QBO) account:
- Go to the Sales menu.
- Select the Invoices tab.
- Locate and select the invoice.
- Click the 1 payment made link and select the date link to open the payment transaction.

- Uncheck the invoice to unlinked it to the payment and click Save and close.

I'd also recommend contacting your accountant for guidance. This way, we can ensure the accuracy of your accounts after making these changes.
You might also want to check this article that provides detailed steps on how to reconcile your accounts in QBO: Reconcile an account in QuickBooks Online. This way, you'll ensure the accuracy of your accounts when reconciling.
Let me know if there's anything else I can help you with. Our door is always open to help. Keep safe and stay healthy!