dont reset company on deleting company transactions
diff --git a/erpnext/setup/doctype/company/delete_company_transactions.py b/erpnext/setup/doctype/company/delete_company_transactions.py
index f27ba86..87c1375 100644
--- a/erpnext/setup/doctype/company/delete_company_transactions.py
+++ b/erpnext/setup/doctype/company/delete_company_transactions.py
@@ -27,12 +27,7 @@
 	company_fieldname = meta.get("fields", {"fieldtype": "Link",
 		"options": "Company"})[0].fieldname
 
-	if meta.issingle:
-		single = frappe.get_doc(doctype, doctype)
-		single.set(company_fieldname, "")
-		single.flags.ignore_mandatory = True
-		single.save()
-	else:
+	if not meta.issingle:
 		if not meta.istable:
 			# delete children
 			for df in meta.get_table_fields():