In QuickBooks Online, we can only make an account inactive. This is to make sure that your data is still intact and accurate. You can follow these steps:
Go to the Accounting tab and select Chart of Accounts.
Locate the account you want to make inactive.
From the Action column, click on the drop-down arrow and select Make inactive.