With a fresh ERPNext: v12.4.1 (version-12) Frappe Framework: v12.2.1 (version-12)
install this is to confirm this bug report Cannot delete or cancel because Company is linked with Shopping Cart Settings · Issue #19539 · frappe/erpnext · GitHub
"
Cannot delete or cancel because Company XYZ is linked with Shopping Cart Settings
Went to shopping cart which is not enabled.
I still cannot delete the company.
"