Thank you for taking time posting in the Community, info628.
When you disconnect your bank to QuickBooks Online (QBO), you transactions will remain but it will not sync your transactions anymore. Let me show you the steps.
Here's how:
Select Banking from the left-hand menu.
Select the Pencil icon on the card for the bank you wish to disconnect.
Tick the box Disconnect this account on save.
Select Save and Close.
For future reference, I recommend you these articles below: