However, if you're trying to cancel a duplicate account in the chart of accounts, you can mark the duplicate one as inactive.
Here's how:
Click the Gear ⚙ and select Chart of Accounts.
Find the account you want to hide.
Select the small arrow ▼ in the ACTION column. Then select Make inactive.
For more insights about deleting an account, check out the following article. Also, this write-up contains information on what are the default accounts that can't be deleted in QuickBooks: