Deleting Entire Chart of Accounts and Rebuilding

@cattmy you can refer the following link to delete all the company related transactions!
https://frappe.github.io/erpnext/user/manual/en/setting-up/articles/delete-a-company-and-all-related-transactions

Hope this helps.