If taxes include reconciled opening balances, you can’t delete them. Reset the account using the article Resetting or restoring your company data.
Delete all opening balances and transactions before the new start date.
You can’t delete reconciled transactions or those included in tax returns. Resetting the account is the only option.