Hi there, @cheers12900.
Glad to have you here in the Community. I can walk you through in clearing credit card deposits and entries in QuickBooks Online.
If you're referring to clearing an item purchased with a business credit card you can create a Credit Card Credit in QuickBooks Online this will reduce the balance in the credit card.
You can also check out this article about, voiding credit card payments and applying credit card memo for your future reference:
This information should keep you moving today.
Please let me know if you're referring to something else. I'll be around to provide further assistance. Have a good one!