diff --git a/erpnext/setup/doctype/company/delete_company_transactions.py b/erpnext/setup/doctype/company/delete_company_transactions.py index d32e14fcc1..b07a7941ab 100644 --- a/erpnext/setup/doctype/company/delete_company_transactions.py +++ b/erpnext/setup/doctype/company/delete_company_transactions.py @@ -27,10 +27,6 @@ def delete_company_transactions(company_name): "Purchase Taxes and Charges Template", "POS Profile", 'BOM'): delete_for_doctype(doctype, company_name) - else: - # un-set company - frappe.db.sql('update `tab{0}` set company="" where company=%s'.format(doctype), company_name) - # Clear notification counts clear_notifications()