Making a balance sheet account (like bank, accounts receivable, and other current assets) with an outstanding balance inactive is not recommended, accounting wise.
A balance sheet account with transactions has an "account balance." QuickBooks Online will auto-create a journal entry to zero-out this account balance. It does this to maintain a balanced Balance Sheet. Make sure to correct the accounts to zero before making them inactive.