Thanks for taking your time in posting your first concern in the Community. I'll walk you through the steps on removing the credit card account from your QuickBooks Online dashboard.
First off, let's make it inactive in your Chart of Accounts so it will not reflect anymore on your dashboard. Rest assured that your transactions are still in the account once you reactivate it.
Here's how:
Go to the Chart of Accounts and locate the bank you want to disconnect.
Click on the drop-down button beside the View register section.