Hide disabled accounts from chart of accounts


Is there a way to hide disabled (and possibly frozen) accounts from the chart of accounts? There are a lot of accounts that no longer get used and can’t be deleted either as they have entries in them and it would be nice to hide these accounts from the account tree (e.g. old VAT/CST accounts, etc.)